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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
IvanPTC
New Member

I've tried everything I can think of and I am still getting dynamic data issue in Power Bi Online.

Here is the formula: (works fine in Desktop version) 

 

let
GetNextLink = (response) =>
let
headers = response[Headers],
next_link = try headers[#"Link"] otherwise null,
result = if next_link <> null then Text.Split(next_link, ",")(0) else null
in
result,

GetTotalCount = (next_link, current_count) =>
if next_link <> null then
let
response = Web.Contents(Text.Range(next_link, 2, Text.Length(next_link) - 2)),
json = Json.Document(response),
records = json,
next_link = GetNextLink(response),
count = current_count + List.Count(records),
result = GetTotalCount(next_link, count)
in
result
else
current_count,
url= "https://api3.bingo.com.au/",
base_url = url & RelativePath,
RelativePath="table/account?",
top = 999999999,
skip = 0,
orderby = "id",
query = base_url & "$top=" & Number.ToText(top) & "&$skip=" & Number.ToText(skip) & "&$orderby=" & orderby,
response = Web.Contents(query),
json = Json.Document(response),
records = json,
next_link = GetNextLink(response),
count = List.Count(records),
result = GetTotalCount(next_link, count)
in
result

 

Any ideas how to resolve the issue?

 

I get this every time - This dataset includes a dynamic data source. Since dynamic data sources aren't refreshed in the Power BI service, this dataset won't be refreshed. Learn more: https://aka.ms/dynamic-data-sources.

  • Data source for Query1

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors