Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

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 :

 

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 :

 

 

 

Thanks.

 

 

1 Reply

  • 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.