Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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 2 airlines have departure times from the same arrival airport code that are less than 1 hour apart.
Any help ?
The data for these 2 tables is populated from the same source. I just edited the interations so that allow them to be operate seperately. Can a bridge table still solve this if they are both pulling from 1 table ?
That means they have different filtets. No need in this case to a bridge table we just need first to carefully understand the filter context of each one in order to replicate it using dax code.
Hi @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
)
)
)
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 49 | |
| 44 | |
| 43 | |
| 39 | |
| 32 |