Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Sort 2 tables at the same time

Hi,

got 2 tables here which hold the same dimension. Is it possible to link them, so that if you click on one table to sort it, the other table automatically gets sorted in the same way?

4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

There is no way for one object to sense how another object is sorted, so you cannot do it quite the way you want.

You may be able to get close by adding a sort state variable, and sorting each table by using sort expressions that include the variable. You may need a button or text box with an action to set the values of the variable. That way when you select a specific value of the variable (by clicking on a button for example), both tables will sort in the same way.

If you need more specific or detailed help, please post a sample model so that someone can show you how to do this.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I have attached an example of another work around. Here I created a cyclic group with two instances of the same field, one sorted ascending and the other sorted descending. Then if I use the group instead of the field on the two charts, they both sort the same way. If you toggle the cyclic on either one, the other also changes.

To add two instances of a field to a cyclic group, first add the field in the normal way, then add an expression, and enter the field name for the expression. I suggest that you change the display text for each version, but that is optional.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

you can have multiple instances of the same object. Copy the object > then instead of CTRL + V, right click > Paste sheet object as link. This way you'll an identical copy of your original object (in fact both will have the same ObjectID) and they will respond to the same selections,

regards

neo_lee
Partner - Creator
Partner - Creator

drag and select both of them,

then right click and align them to either directions,

it will sorted as one.