This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hello,
I'm trying to do a equivalent of "vlookup" that has the "closest match" in Power Query. But given the data that I had, am trying to know how I can create date from string range (i.e. Feb 23 - Mar 1)
As screenshot shows below, my PQ data is shown below and my desired result is shown in Excel range column K to M
Because it's file name and there's many variations, what would be the best way to get the "start" and "end" date and then "fill in the gaps" of the date, which then finally assign the rate based on the period.
I have attached the Excel File https://docs.google.com/spreadsheets/d/17foxYBLODLDD75nsUygweLCSyjL9UwBf/edit?usp=sharing&ouid=10270...
Thank you in advanced
Solved! Go to Solution.
I was able to play and google around and was able to resolve it.
What I did is create a 2 columns to get the 'start date' and 'end date' based on the text, and these 2 columns are date type.
After which from (https://www.youtube.com/shorts/V6lEUNvbXug), I was able to create the list of dates from these 2 date columns
I was able to play and google around and was able to resolve it.
What I did is create a 2 columns to get the 'start date' and 'end date' based on the text, and these 2 columns are date type.
After which from (https://www.youtube.com/shorts/V6lEUNvbXug), I was able to create the list of dates from these 2 date columns
Hi @JustDavid,
Thank you for the update, I'm glad to hear you were able to resolve it. Thanks for sharing the approach you used as well, it will be helpful for other community members who come across a similar scenario.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |