Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 |
---|---|
94 | |
89 | |
79 | |
77 | |
71 |
User | Count |
---|---|
116 | |
107 | |
88 | |
64 | |
63 |