Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
MarnikV
Regular Visitor

Parallelperiod syntax error

I'm trying to create a DAX measure for the previous month or year sales, but it keeps throwing the following error:

 

 monthproblem.PNG

 

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?

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

Maybe put ;Month instead of ,Month.

 

 




Lima - Peru

View solution in original post

3 REPLIES 3
kcantor
Community Champion
Community Champion

@MarnikV  Oddly enough, don't use all caps. Use Year and Month as YEAR and MONTH mean different things.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Vvelarde
Community Champion
Community Champion

Maybe put ;Month instead of ,Month.

 

 




Lima - Peru

Can't believe I missed that... Thanks!

But now it doesn't return anything? Looks like the values of Total Revenue LY are null...

 

lynull.PNG

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.