We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
Hello guys,
I need to write a measure to check if two Dates match.
the two tables are connected between the serial number.
I already tried:
IF(table1[ChequeDate] = RELATED(table2[InstallationDate]),0,1)
Please help!
Solved! Go to Solution.
Matching Date Test =
IF (
SELECTEDVALUE ( table1[ChequeDate] ) = SELECTEDVALUE ( table2[InstallationDate] )
// prevent returning 0 if blank = blank because multiple dates were included in the context:
&& HASONEVALUE ( table1[ChequeDate] ) && HASONEVALUE ( table2[InstallationDate] )
0,
1
)
Matching Date Test =
IF (
SELECTEDVALUE ( table1[ChequeDate] ) = SELECTEDVALUE ( table2[InstallationDate] )
// prevent returning 0 if blank = blank because multiple dates were included in the context:
&& HASONEVALUE ( table1[ChequeDate] ) && HASONEVALUE ( table2[InstallationDate] )
0,
1
)
User | Count |
---|---|
13 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
28 | |
20 | |
14 | |
11 | |
5 |