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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
StuartSmith
Power Participant
Power Participant

Perform Measure on Matrix Values

I have a dataset similar to...

Person 1Active
Person 2Active
Person 3 
Person 4Active
Person 5 
Person 6 

 

The a Matrix Visual similar to...

Person 1Active
Person 3 
Person 5 
Person 6 

 

I need to get the percentage of non-empty row displayed in the matrix.  So as there are 1 row with "Active" and 3 rows that are Empty, the card visual should show 75%.  Can you perform calculation on matrxi visuals?

 

1 ACCEPTED SOLUTION

Hi @StuartSmith ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1602581175793.png

Note: First copy and paste the table data(2), then unpivot columns '4G', '5G', 'Esim', 'Porting', then you can get table 'date(3)'.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

8 REPLIES 8
amitchandak
Super User
Super User

@StuartSmith , Try like

divide(calculate(countrows(Table), filter(Table,isblank[Active])),countrows(Table))

or

divide(calculate(countrows(Table), filter(Table, not(isblank[Active]))),countrows(Table))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks, but get...

2020-10-05_17-51-34.png

 

Whats "Active" as tried googling it and cant find anything about it.

or another option would be to create "Reference" tables from the origianl table, just containing the coulmns I need and then I can perform a count rows without having to filter the rows that are not included in the matrix.

 

Hi @StuartSmith ,

 

Like this?

v-lionel-msft_0-1602145522953.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Lionel, I have uploaded an example of what I am trying to achieve.  Hope it makes sense.

 

Stu

 

Example (drop box) 

Hi @StuartSmith ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1602581175793.png

Note: First copy and paste the table data(2), then unpivot columns '4G', '5G', 'Esim', 'Porting', then you can get table 'date(3)'.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

StuartSmith
Power Participant
Power Participant

The Matrix is set like this. 

 

2020-10-05_17-23-37.png

 

And I want to have a card, pie chart, etc showing the percentage of rows (Matrix values) that are not blank.  Bearing in mind, the matrix only contains a sub-set of the data set, so unable to simply count all the rows of the dataset and calculate the percentage that are empty.  

Hope that makes sense.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.