Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe'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
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 ?
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
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 |