Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello guys,
I hope you're doing well.
I'm struggling about a code in Power Query.
Basically, what I want is to query an API with a list (named list_id) as a parameter.
Let's consider the following code :
It works pretty good if I put myself an ID or a list of IDs as Parameter :
But if I put directly my list of values (List_ID) as a paramater, it didn't work :
I tried several things but without any success 😕
Can you guys give me some help please ?
Thank you.
Solved! Go to Solution.
Hi @Mohamed_59 ,
yes, that't to be expected.
The function is defined to be only working with text values as input.
What you have to do if you want to run this function on multiple values that currently sit in a list, do the following:
1) Transform the list into a table
2) add a custom column to that table where you call the function and reference the first column of the table as input for the function.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @Mohamed_59 ,
yes, that't to be expected.
The function is defined to be only working with text values as input.
What you have to do if you want to run this function on multiple values that currently sit in a list, do the following:
1) Transform the list into a table
2) add a custom column to that table where you call the function and reference the first column of the table as input for the function.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Thanks for the response ImkeF !