Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have a table in Power Query that has a Unique ID and a month end date. Each ID can have multiple rows, each with a different month end date similar to this:
Unique ID Month End
ID 1 31/01/2021
ID 1 28/02/2021
ID 1 31/03/2021
ID 2 31/01/2021
ID 2 28/02/2021
What I want to do is pull in an additonal column of information from another table that I have which is structured like this where the ID matches and the Month End Date falls between the Start Date and End Date.
Unique ID Start Date End Date Column I want to show in my original table
ID 1 07/01/2021 14/02/2021 Text
ID 1 14/02/2021 16/03/2021 Text
ID 2 11/12/2020 null Text
Please can someone advise how this can be done in Power Query please?
Thanks
Solved! Go to Solution.
Hi @nunnc01
I'd create a new column in Table2 with the month end date for the month in Start Date.
You can then merge the tables on the ID and Month End Columns
Giving this
Regards
Phil
Proud to be a Super User!
Hi @nunnc01
I'd create a new column in Table2 with the month end date for the month in Start Date.
You can then merge the tables on the ID and Month End Columns
Giving this
Regards
Phil
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
67 | |
65 | |
56 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |