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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

How to include a measure on matrix rows

Hi, I have created a sampe data as shown below for this issue :

 

Filecount   RegionPIC
2SOUTHERN    ABC
2SOUTHERNXYZ
2SOUTHERNXYZ
3SOUTHERNXYZ
3SOUTHERNXYZ
3EASTERNHIJ
3EASTERNHIJ
3EASTERNHIJ
3EASTERN 
3EASTERN 
1SOUTHERNABC
5SOUTHERNABC
5CENTRALCDE
5CENTRALLMN
4SABAHLMN

 

I am able to come up with a matrix table as shown below in Power BI Desktop :

Current Table.PNG

 

Need help to include a measure called FileCount which is the sum of FileCount into the row of the matrix to get a table as shown below. It is also okay if the FileCount coluumn comes after the Region column :

 

Expected Table.PNG

 

 

Thanks.

 

 

1 REPLY 1
danextian
Super User
Super User

Hi @Anonymous ,

 

What you're trying to achieve is not available out of the box and will require some advanced DAX - eg you cannot have breakdown columns (1 ,2, etc) and then a total column for the breakdown but only a single column for the filecount (no breakdown). It is either you have breakdown columns for the total and the filecount or none at all. But that is out of the  box. Attached is a sample pbix you can reference to to help you achieve what you want.

 

danextian_0-1696314959474.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.