Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ChrisMarini
Frequent Visitor

Keeping bar/column axes consistent

I have a number of visualizations that show a percentage calculated from a count of an ID value.

ChrisMarini_0-1643291585548.png

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).

ChrisMarini_1-1643291639242.png

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.

ChrisMarini_2-1643291707059.png

Is there any way to prevent the axes from dropping empty columns and bars?

3 REPLIES 3
lbendlin
Super User
Super User

in the option menu for your visual fields select "Show items with no data" 

 

lbendlin_0-1643426014495.png

 

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?

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.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.