Forum Discussion
Measure to filter on slicer
Hi Everyone
I have a sales report containing a measure that apportions all of the associated costs based on the percentage of our production time.
I have a slicer based on our Fiscal calendar and a Dropdown to select customer with the below relationships
Sales Report [Customer ID] > CustomerDim [Dustomer ID] Many To One
Sales Report [Invoice Date] > DimCYDate [ dtShort] Many To One
When I set my measure to be
3 Replies
- AllisonKennedy
Community Champion
arad33 Have you tried ALLSELECTED(Date) ? If I understand correctly I think that should work for you??
- arad33Frequent Visitor
Thanks for the reply so if I take it to
Percentage Of ESH = DIVIDE(SUM(SalesReport[ESH Calc]),CALCULATE(SUM(SalesReport[ESH Calc]),ALLSELECTED(DimCYDate)))This returns 100% across every line and apportions 100% of the costs across each line- AllisonKennedy
Community Champion
arad33 Apologies, you'll also need to add a calculate modifier on the customer table too now (sorry I didn't read your requirements closely enough). Try:
Percentage Of ESH = DIVIDE(SUM(SalesReport[ESH Calc]),CALCULATE(SUM(SalesReport[ESH Calc]),ALLSELECTED(DimCYDate)), ALL( CustomerDim ))