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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
strangerMike
Helper II
Helper II

SAMEPERIODLASTYEAR and field not found

Hello,

I am following along on a tutorial using my own data.  I am trying to create a SameperiodLastYear measure, but the intellisence can not find the function SamePeriodLastYear and it also states that the column BeginMonth does not exist in my view, yet I see it.
Can you tell me what I am doing wrong? Thanks

 

 

Thanks
Same.PNG

1 ACCEPTED SOLUTION
strangerMike
Helper II
Helper II

I think I may have found why.  This table View is a Direct Query from a SQL Database.  I think I read there are limited functions that will work with Direct Queries. Does anyone know this to be true?  Is there a way to get sameperiodlastyear without using the function? Thanks 

View solution in original post

1 REPLY 1
strangerMike
Helper II
Helper II

I think I may have found why.  This table View is a Direct Query from a SQL Database.  I think I read there are limited functions that will work with Direct Queries. Does anyone know this to be true?  Is there a way to get sameperiodlastyear without using the function? Thanks 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors