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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Prabhu123
New Member

Space between two bars in bar graph

Hi,

I have used a data which from two tables. I need to show in bar graph. 

While selecting values, there is nothing to define in X axis. but I have values to show in Y axis. 

While dragging the values to bar graph from different tables, it appearing one next one i,e there is no space between two bars.

How can I increase the space between bars or I need to covert that legend to X axis?

 

Prabhu123_0-1688637167566.pngPrabhu123_1-1688637200343.png

 

 

 

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

What do you mean by "There is nothing to show on the X-axis"?  Share some data, explain the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hello,

 

Thanks for your response. Find the pbix from the link given:

https://vontier-my.sharepoint.com/:u:/g/personal/prabhu_a_gilbarco_com/EYXiX-WuSANIoaHEKdXPgZwB3lnl0...

 

Here I would like to add space between bars and also, legends to be switched to X axis.

 

 

 

 

Hi,

Using the Query Editor, append all tables into a single one.  Create your visual from the appended table.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

see attached

lbendlin_0-1689031872558.png

 

@lbendlin Sorry, I have missed out during data creation for sharing. Actually that location coloumn will not be there in tables.

Table names is North, South, West, East and 

In X axis , this table names should come. and Y axis no of vehicles should come in bars with space in between it.

 

Please refer the latest :

https://vontier-my.sharepoint.com/:u:/g/personal/prabhu_a_gilbarco_com/EYXiX-WuSANIoaHEKdXPgZwB3lnl0...

 

 

 

Prabhu123_0-1689067591151.png

 

 

The approach will still be the same.

Table = UNION(
    SELECTCOLUMNS(East,"Location","East","Date",[Date],"Vehicles",[No.of Vehicles]),
    SELECTCOLUMNS(West,"Location","West","Date",[Date],"Vehicles",[No.of Vehicles]),
    SELECTCOLUMNS(South,"Location","South","Date",[Date],"Vehicles",[No.of Vehicles]),
    SELECTCOLUMNS(North,"Location","North","Date",[Date],"Vehicles",[No.of Vehicles])
)    

You can do that in Power Query too if you want.

 

And no, there is no way to dynamically reference table names.

lbendlin
Super User
Super User

or I need to convert that legend to X axis

Either that, or use a different visual.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.