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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PowerBI88
Resolver I
Resolver I

Function to loop through two columns in Power BI Desktop

Hi,

I am trying to build, with no success,  a function in Power query that receives two columns as parameters from a previous query as input and loops through them.

Can you provide me a hint on how to achieve it?

 

Thank you,

Kind Regards Marta

4 REPLIES 4
amitchandak
Super User
Super User

@PowerBI88 ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

refer these

https://www.edureka.co/community/37031/looping-in-power-query

https://eriksvensen.wordpress.com/2019/02/28/powerquery-replicate-doing-an-excel-vlookup-in-m/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for the references, I will give tham a look.

 

here are the steps that I am trying to achieve:

 

1) take the following table with the pairs (projectid, teamid) values

 

2) for each row of the previous table make a reast api call. That is pass these values as parameters to a query that I have already implemented with these value pairs as parameters.

thank you for the link. But it did not solve my problem.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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