Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rohit214
Creator III
Creator III

How to calculate varience%

Hi All ,

i have to calculate the varience with some condotion or logic,

1)if Q8-Q1 varience is -ve then i have to convert into positive value,

2) if Q8-Q1 varience is +ve or zero then convert it zero.

as shown in below.

IDCustomer Name
Dealer Name
Dealer Code
Region
Q1 rating
Q8 Rating



1

C1D1A1XYZ109


2C2D1A1XYZ910


3C3D1A1XYZ810


4C4D1A1XYZ108


5C5D1A1XYZ99


now My requirement is bsaed on below logic

Varience%=total(vaience)/total(Q8 rating) i.e 3/46=6.13%

and required format of able is

IDCustomer Name
Dealer Name
Dealer Code
Region
Q1 rating
Q8 Rating
Q8-Q1
VarienceVarience%

1

C1D1A1XYZ109-116.13%
2C2D1A1XYZ910106.13%
3C3D1A1XYZ810206.13%
4C4D1A1XYZ108-226.13%
5C5D1A1XYZ99006.13%

thanks &regards

rohit

14 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Did you tried like this?.

     Sum(TOTAL aggr(

If(sum({<[CS Survey]={'SBC'},QuestionNo={'Q8'},VIN_No_SBC=p(VIN_No_PSFU)>} rat)-

sum({<[CS Survey]={'Post Service Follow Up - 2012'},[Question No]={'Q1'},VIN_No_PSFU=p(VIN_No_SBC)>}ans)<0,

Fabs(sum({<[CS Survey]={'SBC'},QuestionNo={'Q8'},VIN_No_SBC=p(VIN_No_PSFU)>} rat)-

sum({<[CS Survey]={'Post Service Follow Up - 2012'},[Question No]={'Q1'},VIN_No_PSFU=p(VIN_No_SBC)>}ans)),0),ID

))/Sum(TOTAL {<[CS Survey]={'SBC'},QuestionNo={'Q8'},VIN_No_SBC=p(VIN_No_PSFU)>} rat)

Celambarasan

rohit214
Creator III
Creator III
Author

hi

I tried but it shows Q1-Q8/Q8 rating  for all customer which is wrong answer

but i want varience/Q8 rating in that example values should be 3/46

thanks &regards

rohit

rohit214
Creator III
Creator III
Author

Hi all please suggest me.

how to get sum ( total varience)/sum(Total Q8 Rating)

for reference please take alook in tables

thanks & regards

rohit

Not applicable

Hi Rohit....
I am looking for my better future in IT field.
I hv 6 months experience in QlikView with good knowledge of Server Administration, except (Set Analysis and macros).....

If any job related to Qlikview is in your knowledge , Pllzzzz inform me on my id

Gaurav99choudhary@gmail.com

Thank you
Gaurav Choudhary(India)

rohit214
Creator III
Creator III
Author

hi gaurav,

send me your detail in rht214@hmail.com

if i can do anything for you that will be my pleasure

thanks& regards

rohit