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'm trying to write a switch function with multiple conditions in the <value> part (selectedvalue(Fact_Forecast[Version])="LE02" && maxdate>=date([CurrentYear],5,1)), it looks this won't work in a Switch() function. How can I solve the problem without using embedded if function?
Solved! Go to Solution.
Hi @Jeanxyz
I‘ve create a sample and the measure with similar logic works OK.
if problem sitll persists, could you share your PBI file after removing sensitive information?
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jeanxyz
Have you solved your problem? If yes, kindly accept the answer helpful as the solution. so the others can find it more quickly.
Or
if problem still persists, please let me know.
Best Regards,
Community Support Team _ Tang
Hi @Jeanxyz
I‘ve create a sample and the measure with similar logic works OK.
if problem sitll persists, could you share your PBI file after removing sensitive information?
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 27 |
| User | Count |
|---|---|
| 133 | |
| 104 | |
| 61 | |
| 59 | |
| 55 |