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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors