March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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 does the Metadata show the active categories, i.e. I have no access to the categories not drilled to if I want to render a categor axis.
The clustered bar visual (from PowerBI itself) is capable of showing all of the category axes before the user has done any drilling.
How can I access all of the categories in a custom visual before the user has used drilling in order to render the category axes?
Solved! Go to Solution.
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.
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.
Hi @WouterBo ,
If I understand correctly, it seems that you are trying to a custom visual. But it can display all categories, it only display the first category. However, Power BI default clustered bar chart display normally. Here are a few things you can try to ensure that all categories are displayed:
1. Check the visual settings: Some custom visuals have settings that allow you to control which categories are displayed by default. Check the visual settings to see if there is an option to display all categories.
2. Check the drill-down settings: Some custom visuals are designed to display additional categories when you drill down into the data. Check the drill-down settings to see if there is an option to display all categories.
You can refer the following links to set the properties of visual.
Build a bar chart visual in Power BI - Power BI | Microsoft Learn
In addition, you can contact custom visual support team to get professional help.
Power BI Custom Visuals' Community
Best Regards
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
9 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
11 | |
3 | |
2 | |
2 | |
2 |