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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

 










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


Proud to be a Super User!









"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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors