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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors