cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ikrutko
New Member

Return Value a Year Ago

Hi all,

I am trying to show a 1-Year Ago Mortality Rate using the below formula, but get the same number as the date selected for the table using a filter.

 

1-Year Ago Mortality rate= CALCULATE(Sum('Test'[Mortality Rate]), DATEADD('Test'[Date].[Date], -1, Year))

 

Any ideas?

1 REPLY 1
Jihwan_Kim
Community Champion
Community Champion

I am not sure how your data model looks like, but please try the below.

- create a Dim-Date Table

- assign as a date table

- create a relationship between the Test table and Dim-Date table

- use 'Dim-Date'[Date] column in your measure


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

Best regards, JiHwan Kim

Linkedin: https://www.linkedin.com/in/jihwankim1975/

Twitter: https://twitter.com/Jihwan_JHKIM

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Top Solution Authors