I can't find a solution to this one.
I have COUNT_BIG() in the script and I got the "SQL71640: COUNT_BIG(a) is required" error. But when I changed my script to COUNT_BIG(1), the error will be changed to COUNT_BIG() is required...
Am I missing something here?
SQL71640: COUNT_BIG(a) is required when using this tool to create a materialized view that has SUM(a) in the SELECT list.
Sample script:
CREATE MATERIALIZED VIEW [EDW_DM].[MVW_Fact_Transaction] WITH ( DISTRIBUTION = HASH (H_PlayerHashKey)) AS
SELECT
some columns
SUM(CAST (ISNULL([Column x], 0) AS MONEY)) AS [Column x],
SUM(CAST (ISNULL([Column x], 0) AS MONEY)) AS [Column x],
SUM(CAST (ISNULL([Column x] * [Column x] * 0.0001, 0) AS MONEY)) AS Column x,
COUNT_BIG(*) AS cb
FROM
[EDW_DM].[Fact_Table]
GROUP BY
some columns

I tried to reproduce the issue in my environment with your code I got the same error:
I update my Vs2019 VS2019 to the latest version with Visual Studio Installer. After installation I waited for some time and try to run the code it worked successfully without any error. For more information you can refer this.