Forum Discussion
StuartSmith
Power Participant
2 years agoCount all rows per country.
How can I create a measure that will display in a table visual the number of rows per "Country", similar to the below? Thanks in advance.
- 2 years ago
Hi StuartSmith
Download PBIX file with the example below
Try this
Measure = CALCULATE(COUNTROWS('DataTable'), FILTER(ALL('DataTable'),'DataTable'[Country] = SELECTEDVALUE('DataTable'[Country])))Regards
Phil
PhilipTreacy
Super User
2 years agoHi StuartSmith
Download PBIX file with the example below
Try this
Measure = CALCULATE(COUNTROWS('DataTable'), FILTER(ALL('DataTable'),'DataTable'[Country] = SELECTEDVALUE('DataTable'[Country])))
Regards
Phil
StuartSmith
Power Participant
2 years agoAwesome & Thanks