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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.