Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
72 | |
68 | |
41 | |
35 |
User | Count |
---|---|
108 | |
56 | |
52 | |
48 | |
41 |