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.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.