PS. After the data has been loaded into Power Query, you should manually set the datatypes then override the default precision (2 decimal places) for certain floating point number fields. Something like this should suffice:
Original Message:
Sent: Sat March 15, 2025 08:08 AM
From: Ken Cheng
Subject: Bypassing 64,000 api limit in Power BI
// function to fetch data from the CDY API as a single page
_fn_GetPagedData = (Offset as number) =>
let
Source = Json.Document(Web.Contents(_APIUrl & "?dimensions=" & _Dimensions & "&metrics=" & _Metrics & "&start_date=" & _StartDate & "&end_date=" & _EndDate & "&id=" & _ReportId & "&view_id=" & _ViewId & "&limit=" & Text.From(_Limit) & "&offset=" & Text.From(_Offset))),
Results = Source[results]
in
Results,
// Stored each paged results in a list
PagedResults = List.Generate(
() => [Offset = 0, Data = _fn_GetPagedData(0)],
each List.Count([Data]) > 0,
each [Offset = [Offset] + _Limit, Data = _fn_GetPagedData([Ofset])],
each [Data]
)
// Combine list of paged results into a single table
PagedResultsTable = List.Combine(PagedResults)
CombinedResultsTable = Table.FromList(PagedResultsTable, Splitter,SplitByNothing(), null, null, ExtraValues.Error))
Nb. Each Power Query parameter is denoted by '_' e.g. _APIurl
------------------------------
Ken Cheng
Original Message:
Sent: Tue May 21, 2024 01:28 PM
From: Apptio Community Member
Subject: Bypassing 64,000 api limit in Power BI
Hi community,
Has anyone figured out a way to bypass the 64000 limits of the cost reporting API in Power BI? I am building a cost report to pull in YTD cost data, but at the moment I have to do one query for each month and combining those queries together. Hope there is a more efficient way to do this.
#Cloudability