The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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...
User | Count |
---|---|
62 | |
57 | |
54 | |
51 | |
33 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
43 |