Forum Discussion
Keeping bar/column axes consistent
I have a number of visualizations that show a percentage calculated from a count of an ID value.
When my slicers are set in such a way that a column or bar has no observations to count, the visualization simply drops the bar/column (note that in the image below, the upper right visualization loses 2 bars, the visual below it loses 1, and both column charts lose a column each).
I want to have these columns/bars remain on the axes, but be empty. If the visualizations are interacted with, these do largely what I want, but if the slicers are used, my axes adjust.
Is there any way to prevent the axes from dropping empty columns and bars?
3 Replies
- lbendlinSuper User
in the option menu for your visual fields select "Show items with no data"
- ChrisMariniFrequent Visitor
The problem with "show items with no data" is that it doesn't work with the percent of grand total calculation, which I am using (the group I am making the dashboards for wants the visualization to show percentages since the range of counts can vary from single digits to over 100,000). If I turn off the % of grand total, then this option works fine. Do you know of any way to get this option (or something like it) to work with percentages?
- lbendlinSuper User
In that case you cannot rely on the built in %GT transform, you will have to write your own measure that handles blanks in the way you want.