Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
srik00001
Contributor III
Contributor III

Set Analysis & Rank - need help

Hello everyone,

Appreciate any help with the below requirement.

I am trying to create a calculation where the first part of the set is in the context of the dimension in the chart while the second needs to exclude the dimension in the chart.

From the below sample file, for each Clerk, I want take the clients and rank all the Customer with a relation to those clients.

For Ex: For Clerk = Adil, Customer2 needs to be ranked against all other customers who have a relationship with Client Sri

For Clerk Steve, Customer 1 needs to be ranked against all other customers who have relationships with Clients Arthur & Sri

My input file is below

  

ClientCustomerClerkValue
ArthurCustomer7-2844558675
ArthurCustomer6-926561025
ArthurCustomer1Steve2844558675
ArthurCustomer3Matthew Todd Ashworth2405949750
ArthurCustomer4John2405949750
ArthurCustomer5Stanford2373053625
ArthurCustomer8Morgan2552151375
ArthurCustomer9Maria2243299050
SriCustomer1Steve2270423012
SriCustomer2Adil681126420
SriCustomer3Brian1362252840
SriCustomer5George2270423012
SriCustomer6James2043380872
SriCustomer7Todd1589294980
SriCustomer8Morgan2043380872
SriCustomer9Maria

1816338732

The Output table in qlikview should be as below

 

Clerkcount(Client)sum(Value)Rank
Adil16811264208
Brian113622528407
George122704230121
James120433808723
John124059497504
Maria240596377825
Matthew Todd Ashworth124059497504
Morgan245955322473
Stanford123730536256
Steve251149816871
Todd115892949806

Thanks,
Sri

0 Replies