Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
prma7799
Master III
Master III

sorting

Hi All,

I have one pivot table and i am taking 5 calculated dimension for top 5 product or we can say top 5 record and other record come as REST.

Now my data is coming properly but i need sorting in proper way.

For example

  

RESTFY162,900
P LOGISTICSFY16665
D INDIAFY16454
A.K.SERVICESFY16404
N.S.ARMAFY16387
MI LOGISTICS  FY16384

but I required below output... I want REST record below to top 5 record.

P LOGISTICSFY16665
D INDIAFY16454
A.K.SERVICESFY16404
N.S.ARMAFY16387
MI LOGISTICS  FY16384
RESTFY162,900
14 Replies
dickelsa
Creator
Creator

Hi,

Can you please tell me if there is any logic behind the sorting?

Regards,

Dick

prma7799
Master III
Master III
Author

Yes. I put ytd sales expression as descending mode in sorting tab

dickelsa
Creator
Creator

You should check then if the sorting orders on all other dimensions are switched of, can you please attach your dashboard for more insight?

prma7799
Master III
Master III
Author

All other dimension are switched off in sort tab. It is not possible to attache doc

dickelsa
Creator
Creator

Maybe you need to use the expression in the sorting, instead of sorting on expression?

Not applicable

Hi,

Go to Sort tab,

Use Sort by expression option

If(Column_name ='P LOGISTICS',1,

If(Column_name ='D INDIA',2,

If(Column_name ='A.K.SERVICES',3,

If(Column_name ='N.S.ARMA',4,

If(Column_name ='MI LOGISTICS',5,

If(Column_name ='REST',6))))))

i think this should work.

Regards,

KC

dickelsa
Creator
Creator

Yes but this solution works only for 1 situation, but if N.S.ARMA has a lesser lesser value then A.K.SERVICES, it does not switch places... again, if you attach an exemple of your dashboard, it would be more clear..

antoniotiman
Master III
Master III

Hi,

If Dim is Your Dimension, in Tab Sort Try expression

If(Dim <> 'REST,Rank(Sum(Value)),9999999)

Regards,

Antonio

dickelsa
Creator
Creator

If(Dim <> 'REST',Rank(Sum(Value)),9999999)


you forgot a quote mark