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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Matrix calculated subtotals

Hi,

I need to make a matrix like this one below. In the database I have only the value (like Rev1,Cost2,Dep1,Tax...), while I need to calculate the other (Revenues, Cost, Ebit Earning ..) How can I accomplish with task?

dripet84_0-1622506480068.png

Thanks

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

You can turn on row and column subtotals in Visual Format settings .

Ailsa-msft_0-1622688463469.png

Ailsa-msft_1-1622688463470.png

You can also sum the value by per column level and per row level in Subtotals, if your data has a hierarchical structure .

Ailsa-msft_2-1622688463470.png

Ailsa-msft_3-1622688463471.png

If you want to create measure to calculate subtotals ,you can refer to the sample that I searched in forums .

https://community.powerbi.com/t5/Desktop/Calculate-MAX-for-subtotals/m-p/1754821

 

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , isinscope can allow you shift calculation.

But are these measures or row values?

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

This is the database :

dripet84_0-1622740447440.png

And i need to create a matrix-like the first one

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.