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

Sum subcategories for each category

Hi Everyone! I'm new to power bi and am still learning DAX measures, so any help/advice is very much appreciated! I'm currently trying to make a measure that adds the subcategroies to then be defined by the categories. Unfortunately my orgs settings does not allow me to share even a test pbix, so I encluded a test excel screenshot: 

Andi_R_0-1720644957543.png

So for example, I'm looking to add A1+A2, B1+B2, C1+C2, & D1+D2 to get: A, B, C, & D.

How would I go about making this measure?

Thank you in advance for any help!!

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Andi_R 

 

Download example PBIX file

 

You don't need to write a measure for this, PBI does it for you.

 

After entering the data into PBI, add a table and add the Category and Total

 

sumcats.png

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Andi_R 

 

Download example PBIX file

 

You don't need to write a measure for this, PBI does it for you.

 

After entering the data into PBI, add a table and add the Category and Total

 

sumcats.png

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.