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.
I need to create a dax with 2 conditions, I am able to add one condition but not both.
I need the dax to be something like this-
Solved! Go to Solution.
@Avivek ,
I think the issue is the syntax. Please try this:
Measure 2 = SWITCH(
TRUE(),
AND(SELECTEDVALUE(Sales[System Id])="TX-300.301",
SELECTEDVALUE(Division[Division Id])= "100800"), 1,
0)
Is your Division ID a text value or numeric? In your Measure, the fact that you put in "", I am assuming this field is text. If not, then remove the quotation marks.
Hope this gets you sorted out.
Regards,
@Avivek ,
I think the issue is the syntax. Please try this:
Measure 2 = SWITCH(
TRUE(),
AND(SELECTEDVALUE(Sales[System Id])="TX-300.301",
SELECTEDVALUE(Division[Division Id])= "100800"), 1,
0)
Is your Division ID a text value or numeric? In your Measure, the fact that you put in "", I am assuming this field is text. If not, then remove the quotation marks.
Hope this gets you sorted out.
Regards,
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 |
---|---|
76 | |
76 | |
55 | |
36 | |
34 |
User | Count |
---|---|
99 | |
56 | |
53 | |
44 | |
40 |