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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.