Forum Discussion

WouterBo's avatar
WouterBo
Helper II
3 years ago
Solved

Dataview does not contain all categories unless I drill?

Hi,   When adding more than one category to a custom visual with a categorical dataview, the visual's Metadata only lists the first category in the dataview. Until the user actually uses drilling d...
  • WouterBo's avatar
    3 years ago

    I'll provide the answer to this one myself...

     

    When developing (not just using) your own custom visual with a categorical datamapping, you can allow the user to add multiple categories. However, unless the user uses drilling, your dataview will only contain a single category. I.e. your custom visual must test for this by counting the number of categories in the dataview.

     

    Visuals from powerbi itself seem to have an option to open a visual in drilled down mode. A feature not available to custom visuals using the API. This explains the difference my question was about.

     

    Thank you.