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: 
Anonymous
Not applicable

sort pivot

hi

i made calculte dimansion with 2 feilds "q &'-'& year"

i want to sort pivot table by this demansion , exm :

q1-2014, q2-2014,q3-2014,q4-2014,q1-2015,q2-2015....

how to do it ?

thanks'

yarin.

1 Solution

Accepted Solutions
ecolomer
Master II
Master II

You can use "expression" on label order and put year&quarter

View solution in original post

5 Replies
john9inno
Creator
Creator

Go to propreties and select Sort tab.

you will have options in dimensions window to choose.

John

john9inno
Creator
Creator

QV.jpg
use the source data field to sort the data.

however, adding that quater field at load could perform quicker when data size is not small.

Anonymous
Not applicable
Author

Hi,

Please go through this thread:

Perfectly Sorting Pivot Table (by A-Z. y-Value set for each dim-level)

Hope it will helpful!!

ecolomer
Master II
Master II

You can use "expression" on label order and put year&quarter

sunny_talwar

Try this as your calculated Dimensions:

Dual(Quarter & '-' & Year, Num#(Year & Right(Quarter, 1), '##'))

and then sort your calculated dimension by ascending or descending based on your requirement.

Edit: Assuming Quarter contain values like this -> Q1, Q2, Q3, Q4