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
MiguelSaldana77
Resolver I
Resolver I

Calculations at the same table

Hi everybody
Do anybody know what I need to do calculations at the same table like this?

Calculation.jpg

4 REPLIES 4
d_gosbell
Super User
Super User

If header and concept are separate columns in your data model this should work without having to do anything special. You would just put the Header and Concept on the rows of a matrix visual then right-click on a header item and choose "expand entire level".

2019-07 hierarchy subtotals.png

 

To get the subtotals at the bottom you just have to go into the Formatting settings for the matrix and change the subtotal position setting to Bottom

2019-07 row subtotal position.png

Thanks @d_gosbell  but the real problem is to make the last calculation (see image Calculation2.jpg)

Sorry I did not realise there was any difference between the different dashes in that line. You could implement something like unary operators to solve this (see https://www.sqlbi.com/blog/alberto/2011/03/01/powerpivot-parent-child-and-unary-operators/)

TomMartens
Super User
Super User

Hey,

 

I'm pretty sure that this site https://www.thebiccountant.com/ will provide you the solution you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.