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
Hello,
I want to add a column from another table after checking if a certain date falls between 2 dates from other columns.
I have 2 tables, Tables S/N used by
and
Table transactions (see both below).
I want to create a column 'ID nr.' in the transactions table (in red) and that ID nr. I get from 'Table S/N used by' after I checked if the date in the 'transactions table' falls between the 2 dates in 'Table S/N Used by'.
| Table S/N used by | ||||
| id | S/N | Used by ID nr. | from | to |
| 1 | 123 | 456 | 13-2-2017 | 14-2-2017 |
| 2 | 123 | 789 | 15-2-207 | 16-2-2017 |
| Table transactions | |||||
| id | amount | date | S/N | ID nr. | |
| 1 | 10 | 13-2-2018 | 123 | 456 | |
| 2 | 20 | 14-2-2018 | 123 | 456 | |
| 3 | 25 | 15-2-2018 | 123 | 789 | |
| 4 | 30 | 16-2-2018 | 123 | 789 |
Hopefully it is clear what I mean.
Thanks,
Ralf
Solved! Go to Solution.
Hi @Ralf123
You could refer to a similar solution in the post below
Hi @Ralf123
You could refer to a similar solution in the post below
Great. This was very helpful. Thanks
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Check out the July 2026 Power BI update to learn about new features.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 31 | |
| 30 | |
| 27 | |
| 24 | |
| 16 |
| User | Count |
|---|---|
| 54 | |
| 37 | |
| 27 | |
| 24 | |
| 20 |