Forum Discussion
Two measures with diffrent slicer selection for same column
- 5 months ago
Hi sanjaymithran , Thank you for reaching out to the Microsoft Community Forum.
Yes, switching to TREATAS will perform better. TREATAS applies a proper column filter (like a virtual relationship), which allows the Storage Engine to handle the filtering efficiently instead of iterating the whole table in the Formula Engine.
Rewrite your measure like this:
Sales1 =
CALCULATE(
SUM(Data[sales]),
TREATAS(VALUES(Slicer1[Quarter]), Data[Quarter]),
Data[ProdGroup] = "Term",
Data[Type] = "Actual"
)
Hi sanjaymithran
1. Create calcualted col for year - qtr
2. Then Create two disconnected slicer table
3. Then create two measures
I have attached the pbix for you reference
If this answers your question, kindly accept it as a solution and give kudos.
Thanks, need to apply filter in sales1 and sales2 measures example