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 have a question.
I'm using the monday API to retrieve the platform data. Recovering the initial data was a piece of cake, but now I face a bit annoying problem. When trying to retrieve the sub-items (child activities) of a project, power bi fails, as it displays the query complexity message and gives a timeout.
Have you ever had this kind of problem?
Is there any way to paginate the queries in power BI and somehow give each query a 5 second pause so as not to time out the monday API's 1 minute timeout?
I'll put here the print of the error and also of my query
Error returned by BI
Query I'm using (I hid my token for security measures)
Solved! Go to Solution.
Hi Ibendlin,
I tried to use this function, but unfortunately it didn't work. Do you have any examples of how it works?
I have a similar issue, We have a Power BI dashboard set up to connect Monday.com with using the API key. We’re receiving a time-out error when trying to refresh the data, but the error is only coming across for only one of the boards, we have connected three boards in total and only one of the board is giving us the time out error.
I did go through the below link https://blog.crossjoin.co.uk/2021/12/17/simulating-slow-data-sources-in-power-bi/
Could you please help where it has to be applied to the current M-Query we have been using.
let
Source = Web.Contents("https://api.monday.com/" & "v2",
[
Headers=[
#"Method"="POST",
#"Content-Type"="application/json",
#"Authorization"="Bearer <APIKey>"
],
Content=Text.ToBinary("{""query"": ""{ boards (ids: <BoardID>) { items { id name column_values { title text } } } }""}")
]
),
#"JSON" = Json.Document(Source,65001),
data = JSON[data],
boards = data[boards],
boards1 = boards{0},
items = boards1[items],
#"Converted to Table" = Table.FromList(items, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"name", "column_values"}, {"Column1.name", "Column1.column_values"}),
#"Expanded Column1.column_values" = Table.ExpandListColumn(#"Expanded Column1", "Column1.column_values"),
#"Expanded Column1.column_values1" = Table.ExpandRecordColumn(#"Expanded Column1.column_values", "Column1.column_values", {"title", "text"}, {"Column1.column_values.title", "Column1.column_values.text"}),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Column1.column_values1",{{"Column1.column_values.title", type text}}),
#"Pivoted Column" = Table.Pivot(#"Changed Type", List.Distinct(#"Changed Type"[Column1.column_values.title]), "Column1.column_values.title", "Column1.column_values.text"),
#"Renamed Columns" = Table.RenameColumns(#"Pivoted Column",{{"Column1.name", "Name"}})
in
#"Renamed Columns"
Wow, I'm so grateful. It worked perfectly, thank you!
Read about Function.InvokeAfter()
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 |
---|---|
102 | |
53 | |
21 | |
12 | |
12 |