Forum Discussion
dymetre973
4 years agoFrequent Visitor
Comparing 2 data tables
I have 2 tables containing airline data with airline code, arrival & departure code and arrival time & departure time Im trying to create a table that compares the 2 tables below and shows me if...
tamerj1
Community Champion
4 years agoHi dymetre973
you may start with creating a bridge table that contains all the unique Airport Codes and filters both tables. Then you slice by the Airport Code from the bridge table and use the following measure
Count =
SUMX (
Table1,
SUMX (
Table2,
IF (
ABS ( DATEDIFF ( Table1[Departure Time], Table2[Departure Time], MINUTE ) ) < 60,
1
)
)
)