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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
barbara_oi
Frequent Visitor

Small multiples stacked bar chart -- how to omit missing data from Y axis

I have a stacked bar chart with City as the Y-axis, Funding amount as the X-axis, Source as the legend, and year as a small multiple. 

 

Some cities do not have rows of data for all of the years displayed. This means that they show up in the y-axis but are blank. I would like for cities with 0 funding in a given year to show up as blank, but I don't want this same behavior for cities that simply don't have a row for the given year. 

 

I tried using a visual-level filter as suggested on this post (https://community.fabric.microsoft.com/t5/Desktop/Small-multiples-chart-filtered-for-each-group/m-p/...) but it doesn't work, I think because year isn't blank per se, it just doesn't exist for some city/year combinations. Is there any way to omit cities without a row for a given year from the y-axis for that year? Thanks in advance

2 REPLIES 2
Anonymous
Not applicable

Hi @barbara_oi ,

I create a table as you mentioned.

vyilongmsft_0-1721964353512.png

Then I create a measure and here is the DAX code.

 

Measure = 
IF(
    SUM('Table'[FundingAmount]) = 0,
    BLANK(),
    SUM('Table'[FundingAmount])
)

 

vyilongmsft_1-1721964426638.png

Finally you will see what you want.

vyilongmsft_0-1721967040812.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Yilong Zhou,

 

Thanks for taking the time to respond. Unfortunately this does not address the issue I am running into. The year/city combination in my data is already blank, not 0. As you can see in the image you shared, there is still a space for City B in all four quadrants, which takes up valuable space (I also have this formatted differently, with city on the y axis and a single view instead of multiple quadrants). 

 

I'm including an image as a better example of my problem. As you can see, in 2023 all nine cities are showing up on the y axis. However, the data for cities 3, 6, 7, and 8 are all blank. I want to squish together the other cities so the visual does not take up so much space, but when you scroll down to earlier years, I want all cities that have data to show up (including cities 3, 6, 7, and 8 when they have funding). Is this possible?

 

image example.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.