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! It's time to submit your entry. Live now!
Hi,
I am trying to do a IF statement in M language.
= if [vat] = "v7" then ([total] *1.2)-[total] else if [vat] = "4" then ([total] *1.05) -[total]
I am getting a toke else error...
Any help.
Thanks
Solved! Go to Solution.
Figured it out.. it needs to have an else at the end otheriwse it doesnt work
Figured it out.. it needs to have an else at the end otheriwse it doesnt work
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 41 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 150 | |
| 107 | |
| 64 | |
| 36 | |
| 36 |