Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
rkpatelqlikview
Creator III
Creator III

How to solve the Rank for same %

Hi,

Please help on this.

I am struggling here to solve this ranking. If i get  a same rank it should compare with another field(filed name is [Vehicle Number] based on the count vehicles. How can i include this one in  my expression to resolve the same rank?

Capture12.PNG

This is the expression for Rank i have given in the Straight table:

=aggr(rank(rangesum((Ceil(SUM({<[Control_Fleet (Y/N)]={'Yes'}>}Quantity)/SUM({<[Control_Fleet (Y/N)]={'Yes'}+{'No'}>}Quantity)*100,0.01,0) /4)

+

(Ceil(SUM({<[iVMS ( Y/N)]={'Yes'}>}Quantity)/SUM({<[iVMS ( Y/N)]={'Yes'}+{'No'}>}Quantity)*100,0.1,0)/4 )

+

(ceil(sum({<[Safe KM driven Classification]={'Green'}>} [Kms Travelled])/sum([Kms Travelled]) *100,0.1,0) /4 )

+

(round((Count(DISTINCT [Vehicle Number]) - Count(DISTINCT {<Status1 = {"$(='>=' & Date(Today() - 7))"}>} [Vehicle Number]))/Count (DISTINCT [Vehicle Number]) *100, 0.01,0)/4)),  1,1), [Carrier Name])

Thanks

KUMAR.

3 Replies
sunny_talwar

Would you be able to share a sample to check this out?

rkpatelqlikview
Creator III
Creator III
Author

Thanks for your reply Sunny,

Sure.

Please find the attached data. When user enter the Carrier name it should show the Rank of among their group (No.of vehicles).

If suppose the group1 no of fleets are 172 then that particular Carrier rank should be compare with that group1.

Rank of transporter  current Rank 8/172 and Previous Rank 7/172..

Please let me know if you want any other data.

Please help on this.

Thanks again.

Capture11111.PNG

rkpatelqlikview
Creator III
Creator III
Author

I need to show this rank in Text Object