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 IV
Super User IV

@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.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

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

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.