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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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