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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.