Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
FU
Helper IV
Helper IV

Counting Rows in a Matrix

Hi all,

 

I am trying to create a visual which counts the number of rows that are displayed on the matrix shown below. 

 

Please note I have the measure in the matrix filters to only show me rows that have different values in each date column (hopefully clearly shown)

 

Does anyone know how I can count the number of rows showing?


Pbix file: https://we.tl/t-vd5jYugdD6

count number of changes.png

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @FU

 

If I understand it correctly, you can create the following measure and display it in a card visual. 

Count of Rows = 
VAR _table = SUMMARIZE('Project Risks Query-xxx','Project Risks Query-xxx'[Risk ID],'Project Risks Query-xxx'[Attribute],"Distinct_Count", 'Distinct Measure'[DistinctCount])
RETURN
COUNTROWS(FILTER(_table,[Distinct_Count] > 1))

vjingzhang_0-1673856502929.png

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

FU
Helper IV
Helper IV

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.