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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Funda
New Contributor

dynamic dropdown list

I want to create a custom visual where:

 

In the fields pane, I can drag and drop measures into the data roles.

In the format pane (paint roller) I would like to have a dropdown list that dynamically shows the measures the user has added in the fileds pane, so they can select on of them.

 

However, it seems that in the format pane dynamic lists of measures are not supported, and only static options are possible. 

 

My question: Is it correct that in custom visuals, there is currently no way for dynamic dropdown lists ?

1 REPLY 1
dm-p
Honored Contributor

Hi @Funda,

 

To do this, you would use container functionality to dynamically build entries from your available measures and assign their selection ID to the properties you wish to make measure-specific. The doc unfortunately does not show this scenario in their example, but it does explain the concept of how you need to process your formatting model after it has been built, to create the dynamic entries, so you would need to apply this reasoning to your view model's measures and their selection IDs.

 

One gotcha is that you cannot set up a container + drop-down that drives multiple formatting groups in a card, like the core visuals do. This is a known issue and not supported for custom visuals currently. The only known workaround is to create a container for each group, which adds one drop-down control per group in the formatting card and is not idea UX (but currently the only way to manage it).

 

Regards,

 

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
Top Solution Authors
Users online (11,086)