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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DM_BI
Helper III
Helper III

Count cells in whole table and create a slicer

Hello, 

 

Let's say I have a table of two columns. In each column it can be wirtten "OK" or "KO". I need to know how many cells are "OK" in my whole table. Is it possible? For the moment I create a measure for each column (like in the sample) but very fastidious.

 

Then I want to create a slicer OK/KO so that when I chose OK I see in graph how many OK I have per column.

 

Here is the sample document but I have several columns and rows in my real excel.
https://www.dropbox.com/s/onltywhqy83bomu/Sample%20OK%20KO.pbix?dl=0 
https://www.dropbox.com/s/yqwvlnj3jm62wtc/Sample%20OK%20KO.xlsx?dl=0

 

Thank you!

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@DM_BI ,

 

You just need to select Unpivot Columns in Query Editor first.

https://community.powerbi.com/t5/Desktop/matrix-to-table-help/td-p/329415

Community Support Team _ Sam Zha
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

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@DM_BI ,

 

You just need to select Unpivot Columns in Query Editor first.

https://community.powerbi.com/t5/Desktop/matrix-to-table-help/td-p/329415

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you very much!!

It worked perfectly. In my real table I used "unpivot selected columns" and I don't how it works but it works so thank you!!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors