Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
37 | |
25 | |
19 | |
14 | |
8 |
User | Count |
---|---|
69 | |
48 | |
44 | |
19 | |
15 |