Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
agarwal16
Contributor
Contributor

Group by keys

Key EAP Number Description Flag CDM_Unit_Price Key1 WeightedAverage CPT Code
            48.815326373101  
RC112 112 AV RC 217 RC|96372 0.064323455088445 96372
ROPH112 112 AB CA 124 ROPH96372 17.043596508616 96372
RUH112 112 CD CA 123.94 RUH96372 36.381438588074 96372
RC23 23 BG RC 217 RC|96372 48.333502366464 96372
ROPH23 23 BH CA 124 ROPH96372 22.828434560022 96372
RUH23 23 GH CA 123.94 RUH96372 50.019778552919 96372

 

Here we have calculated weighted Average based on Key.

then again we have to show the weigted average grouped by Key1

output should be like: Only a single row item based on Key1.

how to do please suggest.

Key EAP Number Description Flag CDM_Unit_Price Key1 WeightedAverage CPT Code
            48.815326373101  
RC112 112 AV RC 217 RC|96372 0.064323455088445 96372
ROPH112 112 AB CA 124 ROPH96372 17.043596508616 96372
RUH112 112 CD CA 123.94 RUH96372 36.381438588074 96372
               
Labels (2)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

@agarwal16 Did it solve your problem? please mark accordingly.

View solution in original post

2 Replies
BrunPierre
Partner - Master
Partner - Master

=ONLY(AGGR(MIN(WeightedAverage),Key1))

peter_brown_1-1660910349801.png

 

 

 

 

BrunPierre
Partner - Master
Partner - Master

@agarwal16 Did it solve your problem? please mark accordingly.