Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Frédéricdh
Creator II
Creator II

Pivottable, Listbox and sort Function

Hello,

I have two Objects, a Pivottable with the Dimensions Location and Weeks and a Listbox with only Week.

In the Pivottable the location have a particular order and the expression in the pivottable is Sum ({<Week= >} Load)

But when I click on a week in the Listbox, the order isn't anymore respected. see image:

Frdricdh_0-1708589885482.png

Frdricdh_1-1708589964676.png

 

What must I do?

Labels (1)
1 Solution

Accepted Solutions
Frédéricdh
Creator II
Creator II
Author

wonderfull but i Must work to understand why.

View solution in original post

6 Replies
Frédéricdh
Creator II
Creator II
Author

An when i use the expression Sum(Load) without set modifier, I have this:

Frdricdh_0-1708598044365.png

 

the order is now ok but I want to see all the pivottable

hic
Former Employee
Former Employee

The sort order uses - by default - the current selection as input. If you have an expression with a set expression, you need to use the same set expression in the sort order.

So, try to sort by expression and use {<Week= >} in it.

Frédéricdh
Creator II
Creator II
Author

thanks for the reply, it's very nice.

my sort order is based on: Match ( Location, 'A', 'B', 'C'), where i must insert the set expression?

 

 

hic
Former Employee
Former Employee

That expression will not always work. You need an aggregation function. See more on https://community.qlik.com/t5/Design/Use-Aggregation-Functions/ba-p/1475833

You could try 

Match( Minstring( {<Week= >} Location ), 'A', 'B', 'C' )

Frédéricdh
Creator II
Creator II
Author

wonderfull but i Must work to understand why.

Frédéricdh
Creator II
Creator II
Author

And now i want to color the different location but Qlikview color the Total too:

Frdricdh_0-1708610270258.png

the expression for the color is Pick(Match(Minstring({<Week=>} Location), 'A', 'B'), rgb(X,Y,Z), rgb(Y,X,Z))

 

and sometimes Qlikview doesn't color the location although it colored for another installation:

Frdricdh_1-1708610745980.png