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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
PowerRon
Post Patron
Post Patron

Parameterize start-date and end-date of Power BI API call

Hi,

 

I have this API call

 


It uses a startdate and enddate. 
This call is input for a Power BI dataset.

What I want is this API call to behave like an incremental refresh on a fact table.
I know how to configure an incremental refresh on a fact table, but how do I do it for this API call?
Changing this
'&startdate=2024-01-01&enddate=2024-01-02'
into this
'&startdate>=2024-01-01&enddate=2024-01-02' gives an error.

So question is:

How do I parameterize startdate and enddate in the API call, so it will add the new data to my Power BI dataset?

Regards
Ron

 

1 REPLY 1
amitchandak
Super User
Super User

@PowerRon , use this function on URL and then try

Uri.EscapeDataString
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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