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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Expression Sorting issue

Hi,

I have been trying to sort a pivot table, which has 4 dimensions and 4 expressions.The pivot calculates total ageing and its distribution in 3 ageing buckets.

Now, i have been trying to sort the ageing based on "Location" column using below sort expression which is same as Ageing formula:


= if([AP_ Status] = 'A' and (APStatus = 'P' or  APStatus = 'Q'),

Avg(TodayDateNo - APQueryResolvedDateNo),if( [AP_ Status] = 'B' ,Avg(TodayDateNo - APQueryRaisedDateNo), Avg(TodayDateNo - UploadDateNo)))

Below is the screen shot of the pivot table. I wanted to sort the Ageing column based on Highest ageing for a "Location".

Thanks in Advance.

ExpressionSort.png

Labels (1)
0 Replies