Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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 @Anonymous ,
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 @Anonymous ,
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 !
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |