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: 
tamilarasu
Champion
Champion

Aggregation function

Hi,

I am new to qlikview. Can any one suggest me a aggregation function for the below case.

Capture.PNG

Attached sample file.

Thanks in advance.

Regards,

Tamil

1 Solution

Accepted Solutions
anbu1984
Master III
Master III

Is the above expr gives correct result with Dim: S.Person, Cust ?

You can use the below

Dim: S.Person, Cust

Expr: Count(if([Old Price]=[New Price],Cust))

View solution in original post

8 Replies
anbu1984
Master III
Master III

Load

    S.Person,Cust,Sum(If([Old Price]=[New Price],1)) As PrdHaveSamePrce

Resident Data

Group By S.Person,Cust;

tamilarasu
Champion
Champion
Author

HI Anbu,

This is sample one. I would like to do this in expression, since the data mode is already created. Can you suggest me an expression?

anbu1984
Master III
Master III

Dim: S.Person,Cust

Expr: Sum(If([Old Price]=[New Price],1))

tamilarasu
Champion
Champion
Author

Thank you Anbu Chelian. I am curious to know whether it is possible to get the same result through aggregation function. Kindly let me know.

anbu1984
Master III
Master III

Isn't Sum() aggregration function?

tamilarasu
Champion
Champion
Author

The below expression is working fine, if i add product in dimensions. But its not working if i want to know Sales person wise summary.

=Count(Aggr(Count(if([Old Price]=[New Price],Cust)),

S.Person))

Can you tel me where it is wrong?

anbu1984
Master III
Master III

Is the above expr gives correct result with Dim: S.Person, Cust ?

You can use the below

Dim: S.Person, Cust

Expr: Count(if([Old Price]=[New Price],Cust))

tamilarasu
Champion
Champion
Author

Sorry the expression which I mentioned is not working. Anyways your solution is working fine. Thank you so much.