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
In Power Query, the M language has a different syntax for "if" statements compared to DAX
try it like this:
if [FY23 Flag] > 0 then "Retained"
else if [FY23 Flag] = 0 then "lapsed"
else "NewFY24"
you can try this
= if xxx and xxxx then xx else xxx
pls see the official doc below
https://learn.microsoft.com/en-us/powerquery-m/m-spec-conditionals?wt.mc_id=DP-MVP-5004616
Proud to be a Super User!
Please accept it as solution if my solution worked.
you can try this
= if xxx and xxxx then xx else xxx
pls see the official doc below
https://learn.microsoft.com/en-us/powerquery-m/m-spec-conditionals?wt.mc_id=DP-MVP-5004616
Proud to be a Super User!
In Power Query, the M language has a different syntax for "if" statements compared to DAX
try it like this:
if [FY23 Flag] > 0 then "Retained"
else if [FY23 Flag] = 0 then "lapsed"
else "NewFY24"
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 26 |
| User | Count |
|---|---|
| 134 | |
| 104 | |
| 63 | |
| 60 | |
| 55 |