cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
iago_salvadori1
Regular Visitor

Acumulative difference between dates

Hi everyone,

 

I have three fields of date, one field is date create, date approval and effective date (when is not approve we considering today day) 

 

EFFECTIVE DATE = IF (BLANK (DATE APPROVAL), TODAY(), DATE APPROVAL)

 

 

We create a column with diferrence date in days:

 

DIF = DATEDIFF(DATE CREATE, EFFECTIVE DATE, DAY)

 

 

We want analyse average DIF for example, year 2021 (01.01.2021 to 03.31.2021) but we have a problem beacuse the records thath do not have approval don´t appear in the analysis, beacause effective date is Today.

 

How can we analyse the measure by moth considerin the accumlates up today´s date?

 

Thank you.

 

1 REPLY 1
amitchandak
Super User
Super User

@iago_salvadori1 , when your effective date is today then it should work for the range filtered for 2021 on this date. Hope filter is on effective date not approval date 

 

check do you need date table and userelationship

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!