Forum Discussion
Varun51
6 years agoRegular Visitor
How to add 2 Different Dimension Condition in Filter Expression
HI, Would like to 2 Different Filter conditions in FIlter expression like below . is it possible ? any help would be highly appreciated in below DAX would like to add condition from anot...
- 6 years ago
Hi Varun51 ,
Please try like this:
Filter Measure = CALCULATE ( [Tot Sales Measure], FILTER ( Products, Products[ProductName] = "Tofu" || MAX ( Category[Category Name] ) = "Produce" ) )Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-xuding-msft
Community Support
6 years agoHi Varun51 ,
Please try like this:
Filter Measure =
CALCULATE (
[Tot Sales Measure],
FILTER (
Products,
Products[ProductName] = "Tofu"
|| MAX ( Category[Category Name] ) = "Produce"
)
)
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Varun51
6 years agoRegular Visitor
Thats grate working like a Charm !!.
May i know why we need to use Max here can you please help me in understanding?
Thanks,
Varun