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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Matrix subtotal

Hi !

I have a Year-Month slicer and I would like to show my YTD sales value. For example, if 2021-March is selected, it will show the sales value from 2021-Jan to 2021 March.

 

gandalf00_1-1628147300068.png

 

 

I'm afraid that I'm unable to show a screenshot of my matrix in Power BI, but it looks like the top table in the picture below. Any idea on how can I get it to look like the bottom table? I would like the totals for the 3 months to appear right after each sales category (Sales, Backorder, Orders on hand etc.).

 

gandalf00_0-1628147196729.png

 

Thanks in advance!

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , I doubt the below one is possible. The workaround is: You have convert measures to rows, take column of measure on the top of month in matrix

 

refer if needed

column header grouping
https://www.daxpatterns.com/dynamic-segmentation/
https://community.powerbi.com/t5/Desktop/Matrix-Display-Values-above-Columns/td-p/256905

View solution in original post

v-shex-msft
Community Support
Community Support

HI @Anonymous,

I'd like to suggest you take a look at the following blog to know how to use if statement to check current row content level, then you can use DAX expression to replace specific cell results.

Clever Hierarchy Handling in DAX - SQLBI

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous,

I'd like to suggest you take a look at the following blog to know how to use if statement to check current row content level, then you can use DAX expression to replace specific cell results.

Clever Hierarchy Handling in DAX - SQLBI

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@Anonymous , I doubt the below one is possible. The workaround is: You have convert measures to rows, take column of measure on the top of month in matrix

 

refer if needed

column header grouping
https://www.daxpatterns.com/dynamic-segmentation/
https://community.powerbi.com/t5/Desktop/Matrix-Display-Values-above-Columns/td-p/256905

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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