Forum Discussion
Space between two bars in bar graph
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.
Hello,
Thanks for your response. Find the pbix from the link given:
Here I would like to add space between bars and also, legends to be switched to X axis.
- lbendlin3 years agoSuper User
see attached
- Prabhu1233 years agoNew Member
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 :
- lbendlin3 years agoSuper User
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.
- Ashish_Mathur3 years agoSuper User
Hi,
Using the Query Editor, append all tables into a single one. Create your visual from the appended table.