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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
ffunky
Helper I
Helper I

Sameperiodlastyear not working in "Analyze in Excel"

Hello all!

 

I have a data model and fairly basic sales grid that shows sales this year and, utilizing the Sameperiodlastyear function, shows last year Sales.  In PowerBI, it works fine, but when I connect to the data model via Excel, it doesn't seem to understand how to show the last year numbers.  I'd like for some folks to use this model to do basic ad-hoc reports, but this seems to be a deal breaker for using Excel.  Any ideas?

 

PBI:

pbi.PNG

 

Excel (Last year blank):

excel.PNG

1 ACCEPTED SOLUTION

Sorry for wasting your time - I was using the week number field from the data table instead of the calendar table.  it's working now

View solution in original post

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @ffunky 

 

I just tested it and it works fine on my side, would you mind sharing your dummy pbix that I can dig it further ?

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Sorry for wasting your time - I was using the week number field from the data table instead of the calendar table.  it's working now

Hi @ffunky 

 

Great to know you have fixed it, please kindly mark the answer as solution to finish the thread. thanks a lot!

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.