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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Power Query Dynamic Date

Hi all,

 

I'm requesting some data using the web connector. Part of the URL I am connecting to has a date range, see below:

 

query=created:%20[2018-01-30T00:00:00%20TO%202018-01-30T23:59:59]

 

The date has to be expressed in this way. Is there a way I can make this date range dynamic so it always references yesterday?

 

 

I've tried using some of the datetime functions but can't get it to work.

 

Thanks

 

Mike

3 REPLIES 3
Rfranca
Resolver IV
Resolver IV

 

hi, @Anonymous

 

See this link, it can help in solving your problem

 

is-it-possible-to-dynamically-update-the-source-url-with-power-query

 

Please try and test using it. And please mark the right reply as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.

Best Regards,
Rfranca

Anonymous
Not applicable

Hi

 

It doesn't really explain how to dynamically input the date in the correct format in the power query.

 

Regards

 

Mike

Hi @Anonymous,

 

Here is a similar thread for your reference:

Passing dynamic date parameters to Web query

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.