Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am creating a dashboard where I would like the users to have the ability to select a level of a hierarchy to display the distribution of that hierarchy for a set of categories. I made use of this blog post on how to set dynamic categories/legends, which works perfectly with the exception of the data labels. (https://xxlbi.com/blog/dynamic-hierarchies-in-power-bi/) For the 100% stacked bar chart, I would need the Legend to reflect the level the user selects in the slicer. Here's what I am seeing, the top stacked chart is with the dynamic selection, the bottom is without. The distribution for both is correctly sliced, however the data label for the dynamic version is showing 0.0% instead of the expected % distribution. I'm not sure why this doesn't display correctly in the dynamic legend scenario, any ideas on this? When I hover over the top chart, the tool tip does show the correct % distribution.
Solved! Go to Solution.
That unfortunately didn't work - for whatever reason, when I went back and re-created the visualization from scratch, it seemed to work with the correct data values showing. (I had at first just changed the chart from a regular bar to the stacked %) I am not sure why that worked vs. changing the chart type, but it's fixed now.
Hi @Anonymous ,
Try to change the decimals up or down and then set it to zero again. I hope that this helps!
If possible, please share your .pbix file and remove confidential data.
Best Regards
Lucien
That unfortunately didn't work - for whatever reason, when I went back and re-created the visualization from scratch, it seemed to work with the correct data values showing. (I had at first just changed the chart from a regular bar to the stacked %) I am not sure why that worked vs. changing the chart type, but it's fixed now.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
98 | |
96 | |
75 | |
71 | |
64 |
User | Count |
---|---|
140 | |
109 | |
103 | |
82 | |
73 |