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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
innocence84
Helper I
Helper I

Admin - Get Activity Events

Hi,

We need to use pagination in the Admin - Get Activity Events  API. For the first call we need to pass startDateTime and endDateTime parameters. For the subsequent calls, we need to use continuationToken.

 

API run is successful by using recursive function in Power BI dataset. However, when we run the same recursive function in the Power BI dataflow, we are getting dependency cycle was detected error message. I tried to implement it with a do while loop and if statement. However I can not find do  while and while keyword in Power Query. I think they are not supported.

I found API pagination example by using List.Generate https://youtu.be/05yhwnuCjRw?t=432
However in the example, page is increasing incrementally. However I need to pass the API call result (continuationToken) to the subsequent API call. How can I implement this in Power BI data flow?

Thanks

2 REPLIES 2
Anonymous
Not applicable

HI @innocence84,

Perhaps you can try to with a custom function with recursion logic(invoke the function itself in the function internal) to invoke rest API and extract the previous result as parameter in following calculations.

Recursive Functions in Power BI / Power Query — The Power User

Regards,

Xiaoxin Sheng

I applied the same logic. I received the code from https://bielite.com/blog/building-a-power-bi-admin-report/ 
Activity Query in the blog post was working in the dataset.

I used the same Activity Query, from the blog post, in a Power BI Dataflows. When I click save button, Power BI is throwing error message and it can not save the dataflow.
I wonder whether Power BI Dataflows support recursive functions.
Thanks

Power_BI.png

 



Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.