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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors