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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Auto Orderiing in Chart with Cyclic Groups

I have a Chart (table) with Cyclic group witch looks like this:

Grouped field 1NamePrice
1A12
2B15

And if I change the group value

Grouped field 2NamePrice
TA20
RB7

I'd like to automatically sort by Name for Grouped field 1 selected and

I'd like to automatically sort by Price Desc for Grouped field 2 selected.

Is it possible?

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

From Document Properties | Groups, select the group in the Groups box. Then click Edit. Now click on Sort Orders. Select the first field and define the sort properties. Then select the second field and define the sort properties, and so on. Click OK (3 times) to save.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

You can use "Expression" in "order" tab, setting the currently shown field. You can know what's the current field of a group with GetCurrentField(groupname) function.

Formula should be similar to:

=GetCurrentField(groupname)

you can finally specify Ascending or Descending....

Regards,

f.