Forum Discussion
How to include a measure on matrix rows
Hi, I have created a sampe data as shown below for this issue :
| Filecount | Region | PIC |
| 2 | SOUTHERN | ABC |
| 2 | SOUTHERN | XYZ |
| 2 | SOUTHERN | XYZ |
| 3 | SOUTHERN | XYZ |
| 3 | SOUTHERN | XYZ |
| 3 | EASTERN | HIJ |
| 3 | EASTERN | HIJ |
| 3 | EASTERN | HIJ |
| 3 | EASTERN | |
| 3 | EASTERN | |
| 1 | SOUTHERN | ABC |
| 5 | SOUTHERN | ABC |
| 5 | CENTRAL | CDE |
| 5 | CENTRAL | LMN |
| 4 | SABAH | LMN |
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
- danextian
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.