Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
JustDavid
Helper IV
Helper IV

Repeat Rate by Period Range Text

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.

 

Repeat Rate by Period Range as Text.png

 

I have attached the Excel File https://docs.google.com/spreadsheets/d/17foxYBLODLDD75nsUygweLCSyjL9UwBf/edit?usp=sharing&ouid=10270... 

 

Thank you in advanced

1 ACCEPTED SOLUTION
JustDavid
Helper IV
Helper IV

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

View solution in original post

2 REPLIES 2
JustDavid
Helper IV
Helper IV

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.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors