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
I'm trying to create a DAX measure for the previous month or year sales, but it keeps throwing the following error:
If I replace MONTH by YEAR it gives me the same error, only then it says the syntax for YEAR is incorrect. What's wrong here?
Solved! Go to Solution.
@MarnikV Oddly enough, don't use all caps. Use Year and Month as YEAR and MONTH mean different things.
Proud to be a Super User!
Maybe put ;Month instead of ,Month.
Can't believe I missed that... Thanks!
But now it doesn't return anything? Looks like the values of Total Revenue LY are null...
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 35 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 90 | |
| 78 | |
| 66 | |
| 65 |