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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
diana66
Helper I
Helper I

Calculate Share based on Slicers

Hello,

 

I have created a matrix where I have the sales amount for some suppliers or brands based on some slicers. The column MAT TY represents the sales value for this year, LY for last year.

p11.PNG

 

I want to create a Share for each Supplier/ Brand which should be applicable depending on the slicer. So for ex. if I select a specific Category I want to see the Share the supplier has in that category. If I select no category I want to see the Share that the supplier has in the "Group"(second slicer). I tried to put the Value for Sales(MAT TY) and show it as a percent of total column, but the problem is that if I select a specific supplier from one matrix, it changes (becomes 100% because it is calculated based on column). How can I calculate this Share in a way it can be visible when i select the supplier?

p12.PNG

I created a Share column, but the formula is not correct. 

 

After that, I need to create a matrix with Value % Share change, the will contain the percent difference between this year's share and last year's share.

 

Thank you!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Check, if you create sub total like this. Does that help you

https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @diana66 

Is this problem sloved? 
If it is sloved, could you kindly accept it as a solution to close this case and help the other members find it more quickly?
If not, please feel free let me know.
 
Best Regards
Maggie
amitchandak
Super User
Super User

Check, if you create sub total like this. Does that help you

https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak ,

 

Thank you!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.