Forum Discussion
Market Share 100%
- 2 years ago
Hi Julia_Mav ,
I was supposed to post this earlier but forgot to hit reply...Is Product a separate dimensions table? If so:
- what is the relationship flow of this table to the fact ta ble? - should be one to many and single direction
- which column is in the visual/slicer? From fact or dimension?
You can see in the below screenshot that your formula should work fine assuming your the correct setup is used.
Please see attached pbix for you reference.
Hi Julia_Mav
What is this for?
Please provide context?
By 100% you mean, you want the total to be always 100% even if the sum of the breakdown isn't? Please elaborate. Provide a workable sample data that isn't an image and your expected result from that sample data.
- Julia_Mav2 years ago
Helper II
Thank you danextian.
I am using this formula, and it works when no filters are applied. However, when I filter for a specific product category, I see 100% instead of seeing the proportion it represents of all products.Formula:
% =var _totalsalesallproducts =CALCULATE([Sales $], ALL(‘Product'[Product Name]))RETURN DIVIDE([Sales $],_totalsalesallproducts)- danextian2 years ago
Super User
Hi Julia_Mav ,
I was supposed to post this earlier but forgot to hit reply...Is Product a separate dimensions table? If so:
- what is the relationship flow of this table to the fact ta ble? - should be one to many and single direction
- which column is in the visual/slicer? From fact or dimension?
You can see in the below screenshot that your formula should work fine assuming your the correct setup is used.
Please see attached pbix for you reference.