This Graph was made in Excel.
I have tried making in Tableau in the attached Workbook but was not able to achieve it.
Could anyone suggest regarding this?
I was able to achieve in tableau is this:Thank you!
⌗[Tableau Desktop] ⌗[Tableau Products] ⌗[Advanced Charts] #Bar Chart
Hi @Shyam Mishra
The "standard" answer is no - as you can't have two lots of measure names/values for a dual axis, and you can't tell Tableau to show a connected line at the mid point between two categories for the bars.
The "I won't take no for an answer" response is that you can usually force or hack Tableau to do what you want! One such option illustrated below and attached. Up to you if it's worth the effort and hacking around required in your case... sometimes going with the sort of chart Tableau would prefer as standard is better anyway ;-)
What's happening above is that I've:
- UNIONed your data back on itself so that you now have two rows wherever you previously had one
- Using the new attribute [Table Name] that lets you differentiate the two sets of rows I've created some calcs
- The first one determines a fake continuous axis for calendar week where one of the data points is midway (-0.5)
- A measure that returns Quantity for one of the data points and Plan Quantity for the other
- A label that is similar so that I can colour the bars
- A bodged set of B Quantity measures that I really only want to return data at one of the data points
- But if I do I don't get a joined up line...
- so the bodge calculates a fake mid-point to fill in the gaps at the -0.5 points!
Anyway, workbook attached so you dig in.
Post back and let me know what you think and whether you decide to go with something like this or a more natural / standard Tableau chart.
Ta, Steve.