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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.