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

Loop through a list and using the values to generate a new table

Hello

 

I'm a newbie in power bi, I am trying to generate a new table using two steps :

 

1. Retrieving initial data needed for the second step.

I use an api call and get a column with 'Id' as follows. In this example, I only have one but I'm supposed to have a much larger list of just Ids

1data_0-1713371714457.png

 

2. Each one on these Ids will then need to be used individually for another api call : "getItem(Id)". So in this case, getItem(414483025). This will then give me a row for my data

 

I want in the end to have a table with all the combined rows, how can I achieve that ? I assume I need a function ? 

 

Thanks a lot!

 

 

 

1 REPLY 1
lbendlin
Super User
Super User

in your table, add a column that calls getitem([Id])  (note the square brackets)

then you can expand that column and grab the fields you need for your final table.

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors