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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
lkaneff
Frequent Visitor

Granularity issues to get Total Budget for subcategories

I need to calculate a Budget total for each category but in order to do that I have to disaggregate the Category Budget Totals to be at the SubCategory level.  I was wondering how I would be able to do that.  I thought about using ALLEXCEPT but that gave me the total budget for all categories.  So I'm stumped.  Please help me with this problem.  Thanks. 

lkaneff_0-1673449930616.png

lkaneff_1-1673450036681.png

 

 

Category.   I have attached an image of my table

1 ACCEPTED SOLUTION

@lkaneff , That would need allocation as the budget is at the category level

 

Divide( Sumx(Sumamrize(Budget, Product[Category], Budget[Value]), [Value]), countrows(Sumamrize(Budget, Product[Category],Product[Sub Category]) ) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
lkaneff
Frequent Visitor

Thanks!  That was extremely helpful!

amitchandak
Super User
Super User

@lkaneff , I think it better to have many to many join between budget and product and then have a measure like

 

Sumx(Sumamrize(Budget, Product[Category], Budget[Value]), [Value])

 

not need of category. Try if this can work

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

My total budgets measure which is just sum[budget[budget] gives me the same answer.  I want to know what the budget for each subcategory is. Like how much of the budget Bike Racks would be.  I have to use the Sales history to get that answer.  Not sure what the best approach is.  If you can think of how to solve this for me that would be great.  Appreciate your help.  

@lkaneff , That would need allocation as the budget is at the category level

 

Divide( Sumx(Sumamrize(Budget, Product[Category], Budget[Value]), [Value]), countrows(Sumamrize(Budget, Product[Category],Product[Sub Category]) ) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.