Forum Discussion
FU
Helper IV
3 years agoCounting Rows in a Matrix [unsolved 15/01]
  Hi all, I am trying to create a (card or any other) visual which counts the number of distinct rows that are displayed in the matrix shown above. Please note I have the measure in th...
Greg_Deckler
Community Champion
3 years agoFU Without a sample of your data hard to be specific. But, essentially, recreate your table/matrix in a table VAR and then use COUNTROWS.
- FU3 years ago
Helper IV
Greg_Deckler
Would you be able to show me what you mean? I have attached my pbix file here: https://we.tl/t-vd5jYugdD6- Greg_Deckler3 years ago
Community Champion
FU Sure, that helps greatly.
Measure = VAR __Table = ADDCOLUMNS( DISTINCT('Project Risks Query-xxx'[Risk ID]), "__DistinctCount", [DistinctCount] ) VAR __Result = COUNTROWS(FILTER(__Table,[__DistinctCount] > 1 && [Risk ID] = "PRID001")) RETURN __Result- FU3 years ago
Helper IV
What can I do with this measure? Note that my table consists of many rows, I've currently got a measure in to show me the rows that have different values in the date column so essentially I'm tracking data changes over time of the exact same table.
I want to create a card or something which counts the number of rows based on the date created slicer that's shown.
Would be helpful if you could show an example on the pbix file and send it over 🙂