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 !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

Helpful resources

Announcements
Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Power BI Womens Summit 2021 768 x460.jpg

Interviews, learning sessions, allies, and more!

#PowerBIWomenSummit

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!

Top Solution Authors