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
JoeAlb
Frequent Visitor

Dependent query parameter for REST API

Hi!

 

I am calling a REST API which has to main parameters:

1. System

2. Function

 

For both parameters I have created helper queries which provide all available values. Executing the queries separetaly works fine.

 

The problem: the available vallues for "Function" depend on the selection of "System". When I open the Parameter-Editor in PowerBI and change the value for "System", the list for "Function" is not updated. I have to close the editor and reopen it. Then the List for available "Functions" is updated.

 

Any ideas how I can achieve an immediate update?

 

Thanks.

Joerg

1 ACCEPTED SOLUTION
JoeAlb
Frequent Visitor

I've found a solution by nesting multiple function calls where I replace the Function-Type and set the meta information "Documentation.AllowedValues". On the web (sorry, I do not find the link anymore) I found following function which adds a list of allowed values to any other function:

 

setParameterLists = (f as function, allowedValues as list)=>

let

parameterType = Value.Type(allowedValues{1}) meta [Documentation.AllowedValues = allowedValues],

myFunType = type function (select as parameterType) as function

in

Value.ReplaceType(f,myFunType),

 

 

View solution in original post

2 REPLIES 2
JoeAlb
Frequent Visitor

I've found a solution by nesting multiple function calls where I replace the Function-Type and set the meta information "Documentation.AllowedValues". On the web (sorry, I do not find the link anymore) I found following function which adds a list of allowed values to any other function:

 

setParameterLists = (f as function, allowedValues as list)=>

let

parameterType = Value.Type(allowedValues{1}) meta [Documentation.AllowedValues = allowedValues],

myFunType = type function (select as parameterType) as function

in

Value.ReplaceType(f,myFunType),

 

 

v-chuncz-msft
Community Support
Community Support

@JoeAlb,

 

You may leave a comment and vote this idea up.

Community Support Team _ Sam Zha
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.