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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Funda
New Member

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
Super User
Super User

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors