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
PeterL1
Helper I
Helper I

Difficulty with SAMEPERIODLASTYEAR

Hi, 

 

To try and minimize the amount of data from my database import to Power Bi, i have summarized my sales data to week numbers and years (this is how we analyse reports anyways and not by days).

 

What i cannot figure out now, is how to be able to use the SAMEPERIODLASTYEAR when i only have week numbers, months and years from my sales data.

 

Any suggestions?

 

Thanks

Peter

1 ACCEPTED SOLUTION
RolandsP
Resolver IV
Resolver IV

Hi,

You can generate Start of week or End of week date and use SAMEPERIODLASTYEAR with that date. Please note that you need to create Date table to be able to use SAMEPERIODLASTYEAR and other Time Intelligence functions.

View solution in original post

2 REPLIES 2
RolandsP
Resolver IV
Resolver IV

Hi,

You can generate Start of week or End of week date and use SAMEPERIODLASTYEAR with that date. Please note that you need to create Date table to be able to use SAMEPERIODLASTYEAR and other Time Intelligence functions.

Yeah seems to be as easy as that, thanks for the help.

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.