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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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 @Anonymous ,

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 @Anonymous ,

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors