Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

sorting order

Hi FRiends

I have following pivot table in my QV doc'

Screenshot_1.png

I have derived this TOTAL rows with the help of following calculated dimension

=Pick(Dim, BRANCH, 'TOTAL')

I have sorted branch field  with 'Branch No' in descending order since I want to TOTAL row come to the bottom. However due to this my branch order is shown in descending whereas I want it to be shown in Ascending order with Branch1 being shown in 1st row and Total row to remain as the last row . Can you please advise me how to overcome this  issue.

1 Solution

Accepted Solutions
Kushal_Chawda

try to sort it by NO

=Pick(Dim,NO, 1000)

View solution in original post

13 Replies
Kushal_Chawda

Go to sort tab , for Branch dimension, in Expression (ascending) use below expression

=Pick(Dim, keepchar(BRANCH,'0123456789'), 100)

jmvilaplanap
Specialist
Specialist

Hi Upali

Maybe you can create a DUAL field with Branch (How to use- Dual()) it will be easy order it later.

Regards

upaliwije
Creator II
Creator II
Author

Hi Kushal

I have done it but it is not working. Now the TOTAL come in between Branches

Kushal_Chawda

make sure you just have expression sort, any other sort like text, numeric, remove that

upaliwije
Creator II
Creator II
Author

This is how I did it

Screenshot_2.png

Still the same result

Kushal_Chawda

Remove '=' After branch, due to synatx error it is not showing

=Pick(Dim, keepchar(BRANCH =,'0123456789'), 100)  -> wrong

=Pick(Dim, keepchar(BRANCH,'0123456789'), 100) -> Correct

upaliwije
Creator II
Creator II
Author

Sorry Kushal

I spotted the error after adding my screen shot and corrected the same , still the report is not sorted the way I want . Now the Total Comes to bottom but other branches not ordered in numerical order.

Kushal_Chawda

Would you be able to share the sample?

upaliwije
Creator II
Creator II
Author

This is my sample Qv doc. pls help