Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
My web source has a dynamic date, I want it to always return today's date. I'm trying to create a work around to be able to refresh dynamic data in the cloud via BI but it's throwing back an error.
Code causing the issue (with example url https://www.website.com/data/date/date:2023-06-19😞
Source = Json.Document(Web.Contents("https://www.website.com/data/date"),
[RelativePath="date:"&(Date.ToText(DateTime.Date(DateTime.LocalNow()), "yyyy-MM-dd"))]),
You've closed the Web.Contents function too early. The closing bracket/parenthesis for that function needs to move like this
let
RelPath = "date:" & Date.ToText(DateTime.Date(DateTime.LocalNow()), "yyyy-MM-dd"),
Source = Json.Document(Web.Contents("https://www.website.com/data/date/" & RelPath))
in
Source
In addition, trying create a Relative path with a : will give you an other error, something about the URIString not being variable.
That's why I added a step before Source where the Relative Path is created and then that's appended directly to the URL
Regards
Phil
Proud to be a Super User!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 10 | |
| 9 | |
| 9 | |
| 8 | |
| 6 |