Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
iago_salvadori1
Frequent 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...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors