Forum Discussion

DanielSH's avatar
DanielSH
Frequent Visitor
2 years ago
Solved

Dynamically define dropdown list in custom Power BI visual

Does anyone know how to dynamically define the elements of a drop down formatting option for a custom Power BI visual? I want my users to upload some photos in Advanced Edit mode, and then be able t...
  • dm-p's avatar
    dm-p
    2 years ago

    These posts concerned replicating the features in core visuals, where properties can be assigned to selectors (e.g., the legend or measure values), known internally as 'containers.' This didn't fully work but has since been fixed. For the older formatting pane implementations, Power BI would generate them for you. It would work off the data view rather than the approach you're using (which I assume would use another persisted property).

     

    I have an example of dynamic dropdown population in Deneb, which you can find here. It may help you confirm if you're on the right track. I guess you'd need to somehow pass in the list of values from your other property, and this could conceivably work.

     

    Hopefully some of this is useful for you. Good luck!

     

    Daniel