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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Lakshmi_Koduri
Microsoft Employee
Microsoft Employee

How to remove the blank values from a clustered column chart?

Hi,

 

I have a clustered column chart with values displaying per quarter. There are few blank values and the bars are shown up even for the blank values like empty spaces. I tried all the ways to get rid of the blank values like setting the visual level filters set not to be blank, through DAX ( if(value=blank(),0,value). But none of the ways are working. Still I am not able to get rid of blank spaces.

 

Is there anyone who has seen such issue and able to remove the blank spaces between the bars? If so, please help me with the solution>

 

Thanks 

Lakshmi Koduri

7 REPLIES 7
JulioGadioli
Frequent Visitor

I'm trying to help someone else who has the same problem, you can try this solution...

 

BarChart.png

 

AllisonKennedy
Super User
Super User

Continuing my reply, if the blanks show up on the bars, this post might be more helpful to explain why: https://excelwithallison.blogspot.com/2020/07/how-to-handle-blank-measures.html
But Zoe's solution should help in that case.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

AllisonKennedy
Super User
Super User

@DataZoe has given a great solution.
If that doesn't work, you may also need to clean up your data.

A picture really would help us troubleshoot this for you faster. Are the blank values showing up on the axis or in the bar value?

If they show up on the axis see if this post and these suggestions might help:
https://excelwithallison.blogspot.com/2020/07/what-does-this-blank-mean.html
Is it possible there are mismatch rows between your date and fact tables? Or white spaces in your data?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

DataZoe
Microsoft Employee
Microsoft Employee

@Lakshmi_Koduri 

Based on what you said, I would first check these things:

 

1. If you click the drop down menu by quarter, make sure the "Show items with no data" is un-checked.

DataZoe_0-1600481070958.png

 

 

2. Make sure axis is categorical not continuous. 

 

3. That measure would actually make it show. 🙂 The measure would want to be blank() for the chart to skip that quarter, not 0.

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

 

Hi,

So based on your approach, I made sure that the "Show items with no data" is unchecked, x-axis is categorial and changed my measure to be blank() and then applied a visual level filter for my values as "Is not blank". Still I could see the blank spaces for the bar with no data. I could not identify for what reason blank() condition is not getting applied to the measure values and why I am not able to filter out those values in the graph. A ref pic is below:

Lakshmi_Koduri_1-1600558343879.png

 

 

@Lakshmi_Koduri Thanks for the picture - it helps a lot to see the problem.

 

Because you have put Year in the Legend field, it will keep the blank spaces for consistency. 

 

Do you like any of the alternative options below? 

AllisonKennedy_0-1600602022663.png

 

Top left is using custom marketplace visual by Akvelon with "Column by" Quarter and under Format: "X-Axis > Axis Range Type" set to "Separate". Bottom left changes chart type to stacked column. Bottom right puts both quarter and year in Axis, expands down a level and under Format > Data Colors > Show All > On and customize the colors as you want. 

 

None of them are exactly what you're looking for, but hopefully helps a bit? 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

darentengmfs
Post Prodigy
Post Prodigy

@Lakshmi_Koduri 

 

Do you have picture for reference?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.