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
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,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |