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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Loop Function with all values from other table as parameter

Hi, im tryinng to do a Loop to invoke a function with all values from other table as parameter (many times as necessary), to clarify:

 

I have this table with people ID:

 

AlvaroNas_0-1643377656554.png

 

 and y have created my function to works with this ID's as parameter:

 

AlvaroNas_1-1643377706790.png

here is an example with the employee ID: 5894

AlvaroNas_2-1643377739871.png

 

So all i need to do is to generate a list than can automatically take all the values from the first table and one by one invoke the function and capture this data in the same query.

 

I tried to do my best with my english. Thank you very much for your help!

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Anonymous ,

 

Can't you just add a new custom column to your employee number table and enter your function as the column calculation?

PQ would automatically use the employee number on each row to calculate.

 

And your English is great 🙂

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @Anonymous ,

 

Can't you just add a new custom column to your employee number table and enter your function as the column calculation?

PQ would automatically use the employee number on each row to calculate.

 

And your English is great 🙂

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Anonymous
Not applicable

That works perfectly. Thank you very much!!!

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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