Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Learner
Contributor III
Contributor III

Weighted Average calculation in same column.

Hello Everyone,

I have a data of three products containing Qty, Sale Price & Value(As shown Below).

Product NameParticularUOMValue
AQtyMT100
BQtyMT150
CQtyMT200
ARateRs/MT800
BRateRs/MT900
CRateRs/MT600
AValueRs/Lacs0.80
BValueRs/Lacs1.35
CValueRs/Lacs1.20

 

What i wanted to do is, i want a row generated automatically after every category of Particular column i.e. after qty, rate & Value respectively. Than on the inserted row i wanted to calculate sum & Weighted average, Sum for all the 3 products , Weighed average Rate for Rs/MT and sum of value. What i wanted is shown below in Red colour:

Product NameParticularUOMValue
AQtyMT100
BQtyMT150
CQtyMT200
TotalQtyMT450
ARateRs/MT800.00
BRateRs/MT900.00
CRateRs/MT600.00
TotalRateRs/MT744.44
AValueRs/Lacs0.80
BValueRs/Lacs1.35
CValueRs/Lacs1.20
TotalValueRs/Lacs3.35

 

Please help me for completing the above task.

 

Thanks & Regards,

 

Ashish 

 

2 Replies
nevilledhamsiri
Specialist
Specialist

Check This please

 

Neville

Learner
Contributor III
Contributor III
Author

Thank you for the reply...... But i could not open the file. Will be grateful if you can give me the formula or Script written......

 

Thanks & Regards,

 

Ashish