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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
OttoKnoke
Regular Visitor

Separate columns

Hi,

 

I have a column chart visual with two columns. Is it possible to separate the columns on the x-axis? Thanks in advance for any help.

2022-07-24_11-38-49.png

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

Hi, @OttoKnoke ;

Clustered column chart aligns with each labels and group by legends, not support auto fit them. I'd like to suggest you post this requirement to ideas.
Or  you could add another table such as:
1. create a table.

Legend = ADDCOLUMNS( UNION( VALUES('financials'[Year]),{BLANK()}),"rank",IF([Year]=2013,1,IF([Year]=2014,3,2)))

 2.create a measure.

sum = CALCULATE(SUM(financials[ Sales]),FILTER('financials',[Year]=MAX('Legend'[Year])))+0

3. sort by rank column.

vyalanwumsft_0-1658975523065.png

The final show:

vyalanwumsft_1-1658975551827.png


Best Regards,
Community Support Team _ Yalan Wu
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

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @OttoKnoke ;

Clustered column chart aligns with each labels and group by legends, not support auto fit them. I'd like to suggest you post this requirement to ideas.
Or  you could add another table such as:
1. create a table.

Legend = ADDCOLUMNS( UNION( VALUES('financials'[Year]),{BLANK()}),"rank",IF([Year]=2013,1,IF([Year]=2014,3,2)))

 2.create a measure.

sum = CALCULATE(SUM(financials[ Sales]),FILTER('financials',[Year]=MAX('Legend'[Year])))+0

3. sort by rank column.

vyalanwumsft_0-1658975523065.png

The final show:

vyalanwumsft_1-1658975551827.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @OttoKnoke ;

You could add a blank measure then put it into visual.

Measure = BLANK()

vyalanwumsft_0-1658890204249.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks, I did your solution, but who does for the blank measure to not show in the legend? 

jennratten
Super User
Super User

If you have related dimension tables you can add a column from the dimension table to separate the x axis.  In your example above, you should have a measure created for the sum of the amount and a related dimension table with a column containing open/closed.  The example below shows a column chart with a measure in the value and three dimensions on the x-axis.

jennratten_0-1658687712629.png

 

If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.

Proud to be a Microsoft Fabric Super User

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.