Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
253 views
in Technique[技术] by (71.8m points)

Using Tableau - SIde by Side bar chart along with 3 measures

I have 3 measures - sales($), profit($) and discount (%). I want to show Sales and Profit as side by side chart over time and discount as a line chart (all 3 in one).

Is there any way to do this. On tableau community i found some useful tips but for that ill need to pivot the data. I want to avoid doing that.

Thanks a lot for your help!

Aniket

question from:https://stackoverflow.com/questions/65931875/using-tableau-side-by-side-bar-chart-along-with-3-measures

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

As you have already pointed out, in order to have side by side barchart combined with a line chart is quite tricky and needs a transformation of data.

Anyway, if you can accept to have a barchart inside the other one (say profit "inside" sales) like the following, you can get it in few clicks using measure names and dual axis.

enter image description here

If needed, I've even find a really good tutorial by Andy Kriebel:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...