Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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,
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
96 | |
79 | |
65 | |
62 |
User | Count |
---|---|
145 | |
113 | |
105 | |
85 | |
65 |