The problem with your data is that it's column based rather than record based. So as Alex Blakemore suggested you need to reshape your data, which in your case can be done pretty easily within Tableau.
In the Datasource Tab choose the columns A1 to B3, right click on the header and choose "Pivot".
What you have done now is putting it in 2 columns, one with the "code" A1 to B3, the other one with the amount (plus any additional columns you had before).
You can make it a bit easier now by creating two calculated fields with LEFT([identifier],1)
for the Type
and RIGHT([identifier],1)
for the Area
. Where [identifier]
is the column with the A1 to B3 values in it.
Now you have everything to display the Budget and actual side by side by dragging the [area]
and [type]
in the columns shelf and the [amount]
in the rows shelf.
If you need to have the budget as a seperate mark on the bars, you will have to create two more calculated fields (and end up with Alex' suggested idea) where you create two columns, one for [actual]
and one for [budget]
by creating them with if [type] = "a" then [amount] end
and if [type] = "b" then [amount] end
now you can remove the [type]
and [amount]
pills and add the [actual]
and [budget]
ones instead.
Now you can format them as you want in the marks pane.