Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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"
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 34 | |
| 33 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 65 | |
| 44 | |
| 30 | |
| 28 |