Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I am experiencing a token then expected error for the following code with the first AND underlined in red:
if [rev] <1 then "Stopped"
else if [rev] >= 1 AND [rev] <= 100000 then "Below $100K"
else if [rev] > 100000 AND [rev] <= 500000 then "Between $100K and $500K"
else if [rev] > 500000 AND [rev] <= 1000000 then "Between $500K and $1M"
else if [rev] > 1000000 AND [rev] <= 5000000 then "Between $1M and $5M"
else "More than $5M"
how can i get rid of this error?
Solved! Go to Solution.
Hi @Anonymous ,
Try writing all the "AND"s in lowercase as "and".
M language is entirely case-sensitive, so this is probably the issue.
Pete
Proud to be a Datanaut!
Hi @Anonymous ,
Try writing all the "AND"s in lowercase as "and".
M language is entirely case-sensitive, so this is probably the issue.
Pete
Proud to be a Datanaut!
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 |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 8 | |
| 7 | |
| 6 |