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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Get monday.com API subitems

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
error.PNG

Query I'm using (I hid my token for security measures)query.png

1 ACCEPTED SOLUTION
5 REPLIES 5
Anonymous
Not applicable

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. 

 

Sravya_Rajarapu_0-1708570617448.png

 

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"

Anonymous
Not applicable

Wow, I'm so grateful. It worked perfectly, thank you!

lbendlin
Super User
Super User

Read about Function.InvokeAfter()

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Solution Authors
Top Kudoed Authors