Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
phoenix
Creator
Creator

Bar chart - divide each bar into stacks

Capture.JPG

Hi, I have this bar/line graph:

dimension -> year

bars:

expression -> counts for A, B, C, D

lines:

expression-> rates for A, B, c, D

I want to stack the bars A, B, C, D into A->x1+x2+x3, B->x1+x2+x3, c->x1+x2+x3

X-> x1,x2,x3  is another dimension, I want to break the count of A, by sub groups of dimension X.

I want to stack count({x=x1}A), count({x=x2}A), count({x=x3}A) into count(A)

Is this possible?

Thanks

4 Replies
Digvijay_Singh

Can you share sample data and expected output, if I understand correctly you want to stack your count value bars for your second dimension. Sample data and image of expected output with reference to your data will help to understand better.

vishsaggi
Champion III
Champion III

Did you try these? If not can you share a sample app?

Capture1.PNG

Capture2.PNG

phoenix
Creator
Creator
Author

Capture1.JPG !

phoenix
Creator
Creator
Author

below is the sample  data. I am not able to attaché the app.   

yeargroupsubgroupaccsbad
2012Ax1101
2012Ax2203
2012Ax3303
2012Bx1407
2012Bx2507
2012Bx3609
2012Cx1705
2012Cx2808
2012Cx3902
2012Dx11004
2012Dx211011
2012Dx31208
2013Ax11309
2013Ax21404
2013Ax31503
2013Bx116016
2013Bx217012
2013Bx318018
2013Cx119011
2013Cx220054
2013Cx321045
2013Dx12208
2013Dx223023
2013Dx32404
2014Ax125067
2014Ax226026
2014Ax327034
2014Bx128028
2014Bx229065
2014Bx330030
2014Cx131067
2014Cx232032
2014Cx333088
2014Dx134034
2014Dx235035
2014Dx336036
2015Ax137087
2015Ax238038
2015Ax339039
2015Bx140040
2015Bx241047
2015Bx342054
2015Cx143089
2015Cx244044
2015Cx345056
2015Dx146046
2015Dx247047
2015Dx348048