cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
JCENA
New Member

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 @JCENA ,

 

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."
Connect to me on LinkedIn || Need consulting? Hire me for a Power BI gig on UpWork.
Learn with me on YouTube @PowerBITambayan.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors