Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! 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"
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 |
|---|---|
| 64 | |
| 63 | |
| 48 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 118 | |
| 117 | |
| 38 | |
| 36 | |
| 27 |