cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vsgarciap
Helper IV
Helper IV

Percentage of category and subcategory agints a specific category

Hi;

 

I want to calculete a percentage of my category and subcategories against the total sum of one of my categories. Any idea?

 

Best regards

1 ACCEPTED SOLUTION

Try Below

Measure = DivIDE(SUM(Source[Value]),CALCULATE(sum(Source[Value]),filter(all(Source),Source[Category]= "Musica")))

Thanks
Ankit Jain

Do Mark it as solution if the response resolved your problem. Do like the response if it seems good and helpful.

 

 

View solution in original post

4 REPLIES 4
AnkitBI
Solution Sage
Solution Sage

Can you define your requiement with a sample data.

Example dax %.JPG

 

I have this data and I want to calculte the percentage of each category and subcategory base on my Total Sales of Music category.

Try Below

Measure = DivIDE(SUM(Source[Value]),CALCULATE(sum(Source[Value]),filter(all(Source),Source[Category]= "Musica")))

Thanks
Ankit Jain

Do Mark it as solution if the response resolved your problem. Do like the response if it seems good and helpful.

 

 

View solution in original post

It works perfectly. Thank you.

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors