Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 another table Category = "Produce")
Solved! Go to Solution.
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.
Try like
Filter Measure = CALCULATE([Tot Sales Measure], FILTER( Products, Products[ProductName] in { "Tofu" , "cat"}))
or
Filter Measure = CALCULATE([Tot Sales Measure], FILTER( Products, Products[ProductName] = "Tofu" || Products[ProductName] = "cat"))
HI Amit,
Thanks for your reply
would like to conditon for different table not from same table like product name
It should be like below is this possible conditions from 2 different tables ?
Filter Measure = CALCULATE([Tot Sales Measure], FILTER( Products, Products[ProductName] = "Tofu" ||Category[Category Name] = "Produce"))
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.
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |