Forum Discussion
Chalklands
Helper I
6 years agoDivide filtered value by unfiltered value
Hi, I'm trying to achieve the following in BI: I have sales split by category: Meat, Fish, Vegetables I want to calculate a category as a percentage of total sales. How do I prevent the ...
Chalklands
Helper I
6 years agoHi Allan,
Thanks for your reply. I think my problem is that I data in different tables eg Dates, Product Details, Sales data. I can't work out how to get the measure to work if different elements are in different tables. ~Here is a screen shot of the data model:
And a link to the pbix file:
Regards
Pete
v-alq-msft
Community Support
6 years agoHi, Chalklands
You can change the measure as follows.
Total Sales =
CALCULATE(
SUM('Sales Data'[Qty invoiced]),
ALL('Category Icons'),ALL(vw_PowerBI_ProductList),ALL('Sales Data'),'Dates'
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.