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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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