cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cafarrel Frequent Visitor
Frequent Visitor

Same Period Last Year gives me the same as this year

I have a model with a date_dim table and I'm using the same period last year function:

MLI Units SPLY = calculate (sum(MLI_Fact[Units]), sameperiodlastyear(Date_Dim[Date]))

And it gives me the exact same number as the current year...

I've tried parrallelperiod and it's also not working... Any idea why? 

1 ACCEPTED SOLUTION

Accepted Solutions
cafarrel Frequent Visitor
Frequent Visitor

Re: Same Period Last Year gives me the same as this year

Thank you Phil for your reply. I have just discovered a solution (not really the problem) - replacing every possible date filters using the date dimension table instead of what was in my fact table solved the issue... rookie mistake!

Thank you!

View solution in original post

3 REPLIES 3

Re: Same Period Last Year gives me the same as this year

HI @cafarrel

 

On the surface your syntax looks good.  When you plot your data in a table with dates and this measure, does your last year data definitely have a different value for the SUM?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

cafarrel Frequent Visitor
Frequent Visitor

Re: Same Period Last Year gives me the same as this year

Thank you Phil for your reply. I have just discovered a solution (not really the problem) - replacing every possible date filters using the date dimension table instead of what was in my fact table solved the issue... rookie mistake!

Thank you!

View solution in original post

v-xjiin-msft Super Contributor
Super Contributor

Re: Same Period Last Year gives me the same as this year

Hi @cafarrel,

 

I'm glad to hear that you have resolved your issue. Please kindly mark your solution as answer. It'll benefit others with relevant issue. Smiley Happy

 

Thanks,
Xi Jin.

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)