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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
alindquist
Helper II
Helper II

Power Query Custom Function Parameters Nested Allowed Values

I created a custom function in Power Query that takes 3 parameters. I was able to use Documentation.AllowedValues to create a drop down list of hard coded allowed values for the first parameter, "Namespace".

alindquist_0-1654025029651.png

I was also able to successfully create a drop down list of allowed values that is the result of a query to make the list dynamic.

 

There is actually data in the source system that provides a full list of availale namespaces, services, and business objects. Rather than make the user type out a specific service and business object value, I was wondering if it is possible to return a list of allowed values in each parameter based on the selections made in other parameters.

 

For example, there is a table in the data source that looks like this:

 

NamespaceServiceBusinessObject
ErpService1BO1
ErpService1BO2
ErpService1BO3
ErpService2BO4
ErpService2BO5

Ice

Service3BO6

Ice

Service3BO7

 

Is it possible to set up the allowed parameter values so that if I select "Erp" for the Namespace parameter, it uses a query for the allowed values for the Service parameter to dynamically return only "Service1" and "Service2" as the allowed values? Then if I select "Service1" for the Service parameter, it uses a query for the allowed values for the Business Object parameter to dynamically return only "BO1", "BO2" and "BO3" as the allowed values?

2 REPLIES 2
Cristian_Angyal
Most Valuable Professional
Most Valuable Professional

Hey @alindquist ,

How did you manage to get the Dynamic List?
Can you share an example, please?

 

Thank you

 

v-yanjiang-msft
Community Support
Community Support

Hi @alindquist ,

By my research, haven't found the exact way, please see if this document helps.

Additionally, @Vijay_A_Verma is an expert in PowerQuery. @Vijay_A_Verma, would you like to see if you have encountered this kind of problem? Thanks in advance!

Best Regards,
Community Support Team _ kalyj

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Kudoed Authors