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: 
manoranjan_d
Specialist
Specialist

stack bar sort for two expression

hi all,

below is my data

   

Datestudent malestudent female
10/16/2015aa
10/16/2015aa
10/16/2015aa
10/16/2015aa
10/16/2015aa
10/16/2015aa
10/16/2015ap
10/16/2015ap
10/16/2015ap
10/16/2015ap
10/16/2015ap
10/16/2015ap
10/16/2015ap
10/16/2015ap
10/16/2015pp
10/16/2015pp
10/16/2015p

p

now i want stack bar so i used the first dimension as calculated dimension as 1 and second dimension as date to get the stack bar  and then in expression , first expression as count of ({<student male={p}>}date) and second expression i used count of ({<student male={p}>}date)

now i want these count to be sorted in low to high in the stack bar, in sort option how to do sort for two these two expression.

8 Replies
manoranjan_d
Specialist
Specialist
Author

no reply

miguelbraga
Partner - Specialist III
Partner - Specialist III

Hi Manoranjan

Can you please send us a sample .qvw?

Thanks,

Miguel

manoranjan_d
Specialist
Specialist
Author

u can create qvw file on this data and make a review

miguelbraga
Partner - Specialist III
Partner - Specialist III

Here Manoranjan, see the attached file.

Is this what you're looking for?

Sem Título.png

manoranjan_d
Specialist
Specialist
Author

when i seen ur file the sort is happening, pls check the sort tab and test yourself the ascending and descending order its not changing

manoranjan_d
Specialist
Specialist
Author

sorry sort is not happening in ur file pls check

miguelbraga
Partner - Specialist III
Partner - Specialist III

That's because it's a stacked bar chart, the first expression goes to bottom of the chart, the second above, the third above the second, etc... Change the order of expressions and you'll see the change

manoranjan_d
Specialist
Specialist
Author

ok but this is not the correct answer becuase if the first expression is high it go down in the chart, the chart shpuld manually arrange the sort as per the sort tab we given