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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Moet18
Regular Visitor

Minimum Date after date found in column in another table

Hello power BI community,

 

I'm looking for a dax formula, that produces the minimum appointment date for a specific contact after the email sent date to that contact. I have highlighted the deiresed result below.

 

Many thanks

 

Moet18_0-1600337302671.png

 

3 REPLIES 3
amitchandak
Super User
Super User

@Moet18 , Try a new column in Table 1

minx(filter(Table2, Table1[Contact ID] =table2[Contact ID] && Table1[email Send Date] <table2[Appointment Date]),Table2[Appointment Date])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
wdx223_Daniel
Super User
Super User

@Moet18 

if Table A has a one to many relationship with Table B by Contact ID, then the calculated column formula could be =minx(filter(relatedtable(Table B),Table B[Appointment Date]>=Table A[Email sent date]),Table B[Appointment Date])

Moet18
Regular Visitor

Have I posted in the right place.

Helpful resources

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

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors