Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Hello All, I am trying to find the users with maximum cost value.

UserCost PointsRUBU
Angeli621Ed
Bomil743Pu
Angeli022Ed
Angeli621Mor
Rocky734Th
Moni020Tu
Rocky635Th
Aackerman534Tu
Angeli523Mor
Aackerman
634Mor
Angeli821Mor

Here, I want to find the users with maximum cost points irrespective of RU and BU. If a user has a single entry in the table with 0 cost point, so he should also appear in the list. So my output should be the following

UserCost PointsRUHeader 4
Angeli821Mor
Bomil743Pu
Rocky734Th
Moni020 Tu
Aackerman634Mor

Code I am using is:

Load Distinct

"User Name",

RU,

BU,

Std_License,

Max("Cost Points") as "Max_cost_user"

Resident Combined_data

Where "Dialog_Users"=1

Group By "User Name",RU,BU,Std_License

Order By "User Name","Cost Points" ;

But it is not producing desired result.

I would highly appreciate any help. Thank you in advance.

11 Replies
sunny_talwar

Would you be able to add the above data in an app using the above script. Little short on time right now, it will help me immensely.

Anonymous
Not applicable
Author

Sunny, Thanks for your response. I tried doing one, but unfortunately I am not able to do it. Actually, the question I asked is a part of one big load script. I tried replicating the script but its not happening. It would be helpful if you just let me know the script which should work for my problem.

Thank you