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! Get ahead of the game and start preparing now! Learn more
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! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 36 | |
| 33 | |
| 31 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 86 | |
| 85 | |
| 68 | |
| 64 |