Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
manojkumargowda
Creator
Creator

Sorting issues in Qliksense Barchart

Hi All,

I'm facing a sorting issue in Bar chart. As you can see below, Null BranchName (with sales=800) needs to sorted to last, but rest needs to be sorted by descending order. But its not working. please refer below screenshots and table used is a simple inline load as below.

Table:

Set NullInterpret = '';

LOAD * INLINE [
    BranchNo, BranchName, Sales
    0003, Zyger Valley, 150
    0001, Blr Office, 100
    0004, Mys Office,400
    0003, Palm Grove, 200
    0004,,300
    0004,,400
    0004,,100
];

1 Solution

Accepted Solutions
mdmukramali
Specialist III
Specialist III

Hi,

Try Sort by Expression :

=Aggr(sum(Sales),BranchName)

123.PNG

PFA.

Thanks,

Mukram.

View solution in original post

4 Replies
balabhaskarqlik

Try these:

In Sort by Expression

Expression

If(IsNull(BranchName), BranchName,'')

Or

If(IsNull(BranchName), '',BranchName)

mdmukramali
Specialist III
Specialist III

Hi,

Try Sort by Expression :

=Aggr(sum(Sales),BranchName)

123.PNG

PFA.

Thanks,

Mukram.

manojkumargowda
Creator
Creator
Author

Hi Bala,

It is not working. Please post the qvf file if it is working in your end. Thanks.

manojkumargowda
Creator
Creator
Author

Great. It worked.

Thanks Mohammed