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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Lixarius
New Member

Dynamic Date within source for Power BI Report Server automated refresh

Hello,

I am currently facing an issues where we can pull from API only last 4 months of data based on current month.

There is no possibility to change it within application, so I have to work somehow with dynamic dates for automated daily refresh.

However the main issue is the error:

[0] -1056505856: This report contains dynamic datasources, which cannot be refreshed in Power BI Report Server.

I've tried using a solution provided within topic below, but I've noticed that once Current Value for parameter is set, it doesn't change along with date (or it's just me doing something wrong):
https://community.powerbi.com/t5/Desktop/Daily-data-refresh-from-the-same-file/m-p/1610734


Here is my current query, that works for manually within Power BI Desktop but not for Report Server automated refresh (error is not showing up anymore, but date within parameter is not being refreshed):

let
Source = Json.Document(Web.Contents("...URL..." & #"Parameter1"))
in
Source

My parameter is based on list as per mentioned previously solution from other thread:

Lixarius_2-1673609073795.png

And this is my parameter:

Lixarius_3-1673609118275.png

 

Can anybody provide me with solution or advise over this problem?

Any support will be highyl appreciated.

Kind regards

 

1 REPLY 1
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @Lixarius  - you need to use the Relative Path or Query feature of Web.Contents to run the queries in the Web Service.  Please watch this video by Chris Webb/RADCAD - around 26-27 minute he explains the issue and resolve it.

 

Accessing API and web service data using Power Query - by Chris Webb - YouTube

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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