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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.