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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
deflav720
New Member

How to remove white space in clustered column chart where values are not present

Hi, 

If possible, I am trying to remove the white space in my clustered column chart so that the chart is easier on the eyes. Here is my current chart: 

deflav720_0-1652716426892.png

 

And here is the data set which I am importing from an Excel file: 

deflav720_1-1652716464850.png

In the end, I would like 2022 to have 4 columns, 2021 to have 2 columns and 2020 to have 1 column with the corresonding values.

 

Is this doable?

 

Thanks

 

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @deflav720 ,

 

Actually , since the OT Types are almost completely different every year , I think the Cluseter Column chart is not suitable for your requirement because the blanks could not be removed.

 

I'd suggest you use Stacked Column chart instead:

Eyelyn9_2-1652930057047.png

 

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

View solution in original post

5 REPLIES 5
dmf
Frequent Visitor

My X-axis is categorized as "Date Hierarcy". In the format visual my X-axis does not have the option to change the "Type". My first option is "Values".

X-axis Data (Date Hierarchy)X-axis Data (Date Hierarchy)No option for TypeNo option for Type

Gap between categories and visual left and right sidesGap between categories and visual left and right sides

v-eqin-msft
Community Support
Community Support

Hi @deflav720 ,

 

Actually , since the OT Types are almost completely different every year , I think the Cluseter Column chart is not suitable for your requirement because the blanks could not be removed.

 

I'd suggest you use Stacked Column chart instead:

Eyelyn9_2-1652930057047.png

 

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

deflav720
New Member

I am still getting the blank spaces which is due to me having 7 column types ("OT Types" column) and each year on the X axis is giving space to all 7 types even if there is no data in them. I need to only attribute certain column types to specific years on the X axis and not have the other years give space to them. Here is what it currently looks like:

deflav720_0-1652722380404.png

deflav720_1-1652722400656.png

deflav720_2-1652722429639.png

 

 

 

Hello again @deflav720 🙂

Then what you need to do is:  select the visual -> click on 3 dots -> go to Year -> click on the drop-down arrow on the right -> uncheck "show items with no data":

JoaoMarcelino_0-1652722692091.png

Hope I was of assistance!
Cheers
Joao Marcelino

Ps- Did I answer your question? Mark my post as a solution! Kudos are also appreciated 🙂

JoaoMarcelino
Responsive Resident
Responsive Resident

Hi @deflav720 🙂

Welcome to this amazing community!

If you allow me, 1st I would order the X axis by Year and "Sort ascending":

JoaoMarcelino_0-1652718285260.png

Then, you can play with the chart definitions by clicking on the chart to select it, then by going to Visualizations -> Format your visual -> Visual ->X  axis ->  Type: Categorical

JoaoMarcelino_1-1652718483334.png

You can also write down "Padding" on the search bar and reduce the spacing between your columns, like this 🙂

JoaoMarcelino_2-1652718667597.png

Hope I was of assistance!
Cheers
Joao Marcelino

Ps- Did I answer your question? Mark my post as a solution! Kudos are also appreciated 🙂

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors