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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sdavinblanc
Contributor III
Contributor III

How to block sort column in straigh table

Hello,

After a long search, I finally figured out how to calculate the evolution between [nb_allowed] at a reference date and each other years (rows) in my table (see attached file).
Here's my formula in Qlik Sense : (Top(Sum([#Nb_Allowed]))-Sum([#Nb_Allowed]))/Sum([#Nb_Allowed])

Excel file example calcul for C3 :  (B2-B3)/B3

Unfortunately, if the user changes the order of YearMonth (column A), my calculation no longer works because the first row of the table no longer contains the reference date.

Is there a way to block sorting column ?

Thanks you for your help !

 

 

 

Labels (3)
2 Replies
sdavinblanc
Contributor III
Contributor III
Author

Hello @Or 

Not sure to understand what is the partial solution, i've tried to use Above but it's still possible for the user to sort the column so at this end my calcul is wrong because the reference date is at the bottom of the table and not at the top anymore...