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.
Hi Guys, I am pretty new to GraphQL API integration to Power BI.
I read an article Connect Power BI to the Dimension Four API | Dimension Four and able to use my GraphQL code perfectly. (I used Template 2 from this link). But there is a pagination issue in my API. My initial call will retrieve only first 200 rows. I have to include pagination in my M code to retrieve all the rows from the API call. I desperately need your help since I have no clue on how to achieve this in M.
let
url = "https://iot.dimensionfour.io/graph",
tenant_id = "your-tenant-id-here",
tenant_key = "your-tenant-key-here",
GraphQL_Query = "{""query"":""
{
points{
id
name
}
}
""}",
Query_SingleLine = Text.Clean(GraphQL_Query),
Source = Web.Contents(
url,
[
Headers=[
#"Method"="POST",
#"Content-Type"="application/json",
#"x-tenant-id"=client_id,
#"x-tenant-key"=client_secret
],
Content=Text.ToBinary(Query_SingleLine)
]
),
#"JSON" = Json.Document(Source)
in
JSON
Any luck here? I'm new to GraphQL but kind of figured Power BI just isn't going to play well with tools like Power BI. Would love to hear otherwise.
@BI_Analyticz , Check if this blog can help
https://medium.com/@marktiedemann/how-to-do-pagination-in-power-query-430460c17c78
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.
User | Count |
---|---|
98 | |
97 | |
81 | |
77 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |