Forum Discussion
Can't Display the Visual
- 10 years ago
After diving a bit deeper, I discovered the issue only affected some of my measures which required syntax changes as the example below shows:
From
Measure 1 = CALCULATE(COUNTROWS())
To
Measure 1 = CALCULATE(COUNTROWS(Table1))
It appears the latest update of Power BI (app.powerbi.com) now requires the table name as a parameter of the COUNTROWS() function.
ankitpatira I am using import data, sql queries pulling from an on-premise database.
The data loads and displays fine in Power BI Desktop, but the visuals present the error online in app.powerbi.com.
After diving a bit deeper, I discovered the issue only affected some of my measures which required syntax changes as the example below shows:
From
Measure 1 = CALCULATE(COUNTROWS())
To
Measure 1 = CALCULATE(COUNTROWS(Table1))
It appears the latest update of Power BI (app.powerbi.com) now requires the table name as a parameter of the COUNTROWS() function.