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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Y-Value Sort or Dimension Value

Hi Folks

I have a chart that has a cyclic dimension, most of these dimensions are items such as region, country, fund type etc which should be sorted by value in descending order (Y-Value Descending), however, one of the dimensions is a Year Purchased and when this dimension is active we want to sort in Year order.

Does anybody know how I can do this in a sort expression (i.e. IF ( DIM='Year' , YearNumber , Y-Value )

Note: I cannot put the expression itself into the statement above because the expression is a cyclic one.

Cheers,

3 Replies
stephencredmond
Partner - Specialist II
Partner - Specialist II

Hi Nigel,

The GetCurrentField function will tell you what is the current field for your Group.

Stephen

Not applicable
Author

Hi Stephen

The problem is that when you set up a cyclic group on EXPRESSIONS, there is no group name so you cannot access the group and therefore cannot use the GetActiveField or GetCurrentField functions.

Pretty sure I'm correct in this one anyway.

Cheers,

stephencredmond
Partner - Specialist II
Partner - Specialist II

Yes,

To be honest, I have always avoided this issue by separating series that are "Y" sorted from those that are ordinal sorted into different charts. I normally have a practice of using Bars for the former and Lines for the later anyway so it makes sense to me.

Regards,

Stephen