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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Avocado_MK
New Member

How can I select values for a function from a dropdown?

Hi guys,

 

I have a problem with entering data for a function I wrote.

The function "Instanzliste" works fine when I type in the element and optionally a filter.

Avocado_MK_0-1670929337119.png

 

But now I don't always know which elements and filters are available. Therefore, I use a data source to drag the elements and filters separately into a list. Instead of manual input into the fields, I would now like to have a dropdown with the entries from the lists. The selected entry should then be passed to the function.

Avocado_MK_2-1670929594428.png

 

How do I change the function so that it works?

Instanzliste = (Elemente as text, optional Filter as text) => ...

 I hope you can help me.

Thanks in advance.

 

Cheers,
Matthias

2 REPLIES 2
Avocado_MK
New Member

Hi @Anonymous,

thank you very much for your answer.
I have looked at the example on the page carefully. Unfortunately I didn't succeed in placing the dropdowns when entering the parameters.

 

I have created the filters and the elements as parameters. It worked with Edit Parameters. Here I can use the dropdowns. However, this is the wrong position of the dropdowns. Here they should not be visible at all.

 

Avocado_MK_0-1671113983467.png

 

Here when invoke the custom function I cannot select entries from the dropdown.

 

Avocado_MK_1-1671114065567.png

 

PowerBI's example is also fundamentally different from my use case. The example runs the custom function and adds a column to an existing table.

 

My use case is that a new table is created depending on the parameters.

 

Do you have any other ideas?

Thanks in advance.

 

Cheers,
Matthias

Anonymous
Not applicable

Hi @Avocado_MK ,

 

It sounds like you need to create new parameters to existing custom function. Please kindly refer to

Using custom functions in Power Query - Power Query | Microsoft Learn

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.