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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Ashley101
Regular Visitor

Dyanmic Query per Row O

I have an API call which pulls a dataset, this dataset contains an ID for the child dataset (audience).

e.g. /url/campaigns

returns: campaign_id, campaign_title, campaign_audience_id

 

Unfortunately the child dataset can only be pulled using the child ID in the API call. 

This means I need to do a new API call for the child dataset on each row of the parent.

e.g. /url/audience/{id}

 

Is there a way in PowerBI to do this and possibly combine the child datasets?

4 REPLIES 4
Ashley101
Regular Visitor

Hi Winniz,

 

Thanks for your reply. 

 

That looks almost there, but the ID value (and consequently, child dataset) changes per row of the parent.

In your example does the Source loop for each row of the parent supplying the ID?

 

My parent table has an unknown number of records so this makes manual addition of a child dataset per record unvible.

 

Please see the attached image, I hope it clears things up.

Datasource Issue.JPG

 

Hi @Ashley101 ,

 

Do it need to reference the ID of the parent dataset in the API that calls the child dataset details?

 

Hey,

 

Unforunately it does, it's a third party API so I cant alter it.

v-kkf-msft
Community Support
Community Support

Hi @Ashley101 ,

 

You can first get all the dataset IDs and then add custom column to get the child dataset for each ID.

 

Like this:

..."https://api.powerbi.com/v1.0/myorg/groups/xxxxxxx/datasets/" & [id] & "/users"...

vkkfmsft_0-1659590665701.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors