Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Dynamic URL in Powerquery

Hi, I'm making use of this static connection to an API, this works fine:   = Csv.Document(Web.Contents("https://api.xxxxxx.com/xxxxxxxxxxx/reports/export?format=csv&X-API-KEY=xxxxxxxxxxxxx&start_d...
  • v-danhe-msft's avatar
    7 years ago

    Hi Anonymous ,

    I could not modify the URL to achieve your result, maybe you could add an custom column to filter your data:

    if [Date]<=DateTime.Date(DateTime.LocalNow())
    then 1 else 0

    Regards,

    Daniel He