Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
bharatkishore
Creator III
Creator III

Get 2 min values

HI All,

I have  the following columns in script:

     Equipment,

     [Part Group],

     Key_EMS,

     Calendar,

     Age_Final,

      Quantity

Need to get the output like below:

EquipmentPart GroupKey_EMSCalendarAge_FinalQuantity
E1P1Key22013-0130
E1P1Key42013-0151
E2P1Key72013-01221
E2P1Key82013-01150
E3P2Key102013-0251
E3P2Key112013-0250

And need to do sum of quantity and  group by should be on following columns i.e Equipment,Part Group,Calendar


Please let me know if you need anything more.


Attached excel for reference:


Thanks,

Bharat

3 Replies
vamsee
Specialist
Specialist

If your Group by is on Equipment,Part Group & Calendar, then can you please explain why the Quantity value differed for the first 2 lines in your expected output.

E1P1Key22013-0130
E1P1Key42013-0151



timpoismans
Specialist
Specialist

Please refrain from creating multiple threads about the same issue.

The following threads already exist:

Rank in script

Need to get 2 ages

Creating multiple threads won't get your issue solved faster.

timpoismans
Specialist
Specialist

As explained in his other two threads, he wants the two lowest values of [Age_Final] per Equipment, [Part Group], Calendar.

So the Sum(Quantity) is actually grouped by Equipment, [Part Group], Calendar and [Age_Final]