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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
dant05
Frequent Visitor

Include data from previous date into current date

Hi, 

 

I currently have data in a previous 'Next Contact Date' field. I would now like to include all data from the 'Next Contact Date' field, where the next contact date is in the past, into today's date or the most current date. 

 

Can anybody help?

 

 

Previous dates.PNG

1 ACCEPTED SOLUTION

Hi @dant05,

 

Can you share the source data? We didn't see any NextContactDate here. The formula could be like below.

Measure =
IF (
    MIN ( Accounts[NextContactDate] ) < TODAY (),
    TODAY (),
    Accounts[NextContactDate]
)

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @dant05,

 

How to include? Add up? Or count, etc. ? Please follow @Greg_Deckler's suggestion tidy up the data first. If you need more support, please share a dummy sample in the original format and the expected result.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

Is that your source data and is that how it is formatted? I would suggest pivoting/upivoting it.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

The next contact data is from my source data. I'm new to Power BI but would need it to do;

 

If (Accounts[NextContactDate]) is before today's date then return todays date. 

 

Hi @dant05,

 

Can you share the source data? We didn't see any NextContactDate here. The formula could be like below.

Measure =
IF (
    MIN ( Accounts[NextContactDate] ) < TODAY (),
    TODAY (),
    Accounts[NextContactDate]
)

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Dale, Thanks for your measure. Seemed to work with the following;

 

NextContactDateDay = ((Accounts[NextContactDate])<TODAY (), TODAY (), Accounts[NextContactDate])

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors