Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sort a rank

Hi everyone,

I have a pivot table with one dimension = rank (1 to 10).

This rank =IF(Aggr(Rank(sum({$<Week={$(=Max(Week))}>}Amount)),Var,CName) <= 10,Aggr(Rank(sum({$<Week={$(=Max(Week))}>}Amount)),Var,CName),Null())

The order of dimensions is Var (No sort), CName sort by expression = sum({$<Week={$(=Max(Week))}>}Amount) , Rank (No sort).

However, ranking sort is not working.

any help????

Thanks

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

I am not sure there is something happening with your Customer Field? Check attached.

View solution in original post

11 Replies
Anonymous
Not applicable
Author

did you try to sort by expression:

Aggr(Rank(sum({$<Week={$(=Max(Week))}>}Amount)),Var,CName)


Not applicable
Author

It's no working

vishsaggi
Champion III
Champion III

can you share your sample to look into?

Not applicable
Author

attached my sample model, where you can see that rank is not ordered

Thanks

Not applicable
Author

attached my sample model, where you can see that rank is not ordered

thanks !

Anonymous
Not applicable
Author

I think you have to promote the rank to the top of the sorting levels. Means rank must be the first dimension.

This is the way how pivots work. Everything is grouped and within one group (dimension) the next sorting will be applied.

Not applicable
Author

Nop. This not working... these happen when I promoted the rank to the top:

Help!!!

Anonymous
Not applicable
Author

Did you set the sort order of "RNK" to numeric ascending?

Is RNK now on the top level of your sort order?

Not applicable
Author

In the print screen above rank is the first dimension and I loose the ranking by Variable...