Forum Discussion
FU
3 years agoHelper IV
Counting 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
3 years agoCommunity Champion
FU 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 agoHelper 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 agoCommunity 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 agoHelper 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 🙂