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
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])

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