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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dynamic data source for planners

Hello,

I want to retrieve data from Microsoft planner on PowerBI via APIs. I am currently using the following query :

 

https://graph.microsoft.com/v1.0/planner/plans/{plan ID}/tasks

 

The problem is that I would like to retrieve data from several planners (who are all in the same Sharepoint team) but instead of creating a new request for each new planner, I would like it to be automated...

 

I succeeded to retrieve the ID of all my planners with the following query:

https://graph.microsoft.com/v1.0/groups/{group ID}/planner/plans  :

Alexis_ATMB_1-1650887949983.png

 

Now what I would like to do is that in my first query, the {plan ID} would fetch the values ​​of value.id from my second query.

 

I think I'm close to finding the solution but I'm stuck. Here are the steps I did :

 

  • Add value.id as a new query

 

  • Creating a Parameter :Alexis_ATMB_2-1650887949986.png

     

 

 

If in my parameter I change the current value to put an ID of a plan, my query works well but gives me only the tasks of the plan that I have entered but not the others…


How to automatically retrieve data from all planners?


Thank you for your response and have a good day.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

Thank you for your answer, but I've found an other solution :

  • I started by transforming my first query into a function :

Alexis_ATMB_0-1651126803536.png

  • And on my second query, I add a column that calls the function
    Alexis_ATMB_1-1651127048068.png
  • I get what I wanted (Tasks by plan) :

Alexis_ATMB_2-1651127145762.png

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

Thank you for your answer, but I've found an other solution :

  • I started by transforming my first query into a function :

Alexis_ATMB_0-1651126803536.png

  • And on my second query, I add a column that calls the function
    Alexis_ATMB_1-1651127048068.png
  • I get what I wanted (Tasks by plan) :

Alexis_ATMB_2-1651127145762.png

 

 

Anonymous
Not applicable

Hi @Anonymous ,

 

You may mean use parameters to automatically change the data sources.

To my knowledge, currently parameters could only dynamically change data sources by choosing different value for"Current Value" as you mentioned.

Eyelyn9_0-1651113902380.png

 

I doubt you need an extra script (may be Power Automate or something). 

 

Refer to:

Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Docs

Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors