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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ritesh24
New Member

Dynamic Data fetch trigger while changing the date range

I am working on a report for my organization. In this report, I am fetching data from our server using REST API.

let
AuthKey = "",
url = "https://weburl/api",
body = "{""from"":""03/07/2017"", ""to"":""03/07/2017""}",
Source = Json.Document(Web.Contents(url,
[
Headers = [#"Authorization"=AuthKey,
#"Content-Type"="application/json"],
Content=Text.ToBinary(body)
]
)),
txn= Source[txn],


But I want to associate/change "from" and "to" in the API call using a daterange for date filter of power BI. That means if I change the date in date range control, PowerBI will fetch the data and update the report.

 

 

mCjgM1n

 



How can I do this?

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @ritesh24,

 

Currently, it is not possible to pass selected values from slicer to Power Query so that the dataset loaded into desktop can be dynamically changed. Please be aware of that the values available in data view is fetched from Power Query.

 

Here is a similar thread for your reference: Passing json parameters to REST API data source

 

Best 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.
Anonymous
Not applicable

Hi @v-yulgu-msft 
Is this stil the case? because we have the exact same problem

ritesh24
New Member

I am working on a report for my organization. In this report, I am fetching data from our server using REST API.

let
AuthKey = "",
url = "https://weburl/api",
body = "{""from"":""03/07/2017"", ""to"":""03/07/2017""}",
Source = Json.Document(Web.Contents(url,
[
Headers = [#"Authorization"=AuthKey,
#"Content-Type"="application/json"],
Content=Text.ToBinary(body)
]
)),
txn= Source[txn],


But I want to associate/change "from" and "to" in the API call using a daterange for date filter of power BI. That means if i chnage the date in date range control, PowerBI will fetch the data and update the report.

 

Date Range

How can I do this?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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