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
Preboat
Frequent Visitor

Calculation groups in Power BI

I have two calculation groups 
Calculation group 1

NameJan-24Feb-24Mar-24Apr-24May-24TotalCTotalBTotalARate
ewrr 12344148678036.36%


Calculation group 2

NameJan-24Feb-24Mar-24Apr-24May-24TotalCTotalBTotalARate
wdw dnwu349126768564266%



I used calculation groups because i needed the totals in red to be at the end of my table.
Now i want to put it together in a visual to achieve one table stacked together.

NameJan-24Feb-24Mar-24Apr-24May-24TotalCTotalBTotalARate
ewrr 12344148678036.36%
wdw dnwu349126768564266%
1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Preboat 

 

I am assuming each column in your sample tables is a calculation item. If so, that is a lot of work and if there are more months then you will need to add them manually. 

 

I would use a combination of a calculation group for the calculation and a  disconnected table for the column headers.

danextian_0-1752804926028.gif

Please see the attached pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

5 REPLIES 5
danextian
Super User
Super User

Hi @Preboat 

 

I am assuming each column in your sample tables is a calculation item. If so, that is a lot of work and if there are more months then you will need to add them manually. 

 

I would use a combination of a calculation group for the calculation and a  disconnected table for the column headers.

danextian_0-1752804926028.gif

Please see the attached pbix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@danextian instead of category at the end of the table is it possible to have it as different measure totals?

Preboat
Frequent Visitor

Hi @Greg_Deckler  if i want to change the date and work with codes. Do i need to create the same custom hierarchy especially when i have more than 100's of codes. Do you have a way to reference these codes in the switch statment rather than referencing it individually? Thank you

Greg_Deckler
Community Champion
Community Champion

@Preboat Not entirely sure, but perhaps you need something like this?

The New Hotness (Custom Matrix Hierarchy) - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler thanks for responding with a possible solution. I am going to try this. 
Thanks

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.