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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Mike_Mace
Resolver I
Resolver I

Date greater than other date issue

Hi Forum,

 

Item lists A&B have common entries and I created a relationship between them.

I need to identify the common entries where date A comes is a later date to B

 
I thought this would be a straight forward one with following Dax, but the calculated result is only "no issue". I checked, there are definitely cases where date A are greater than date B while others are smaller. The calculation should find both issue & no issue
file on wetransfer link
 
date comparison = IF('A schedule'[date A].[Date] > 'A schedule'[date A].[Date],"issue","no issue")
 
 
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Mike_Mace , Create a new column in A schedule like

 

if('A schedule'[date A] < minx(filter('B schedule', 'A schedule'[Item List A] = 'B schedule'[Item List B] ),'B schedule'[date B]) ,"Yes", "No")

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Mike_Mace , Create a new column in A schedule like

 

if('A schedule'[date A] < minx(filter('B schedule', 'A schedule'[Item List A] = 'B schedule'[Item List B] ),'B schedule'[date B]) ,"Yes", "No")

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.