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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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"
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 116 | |
| 105 | |
| 41 | |
| 34 | |
| 25 |