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: 
Not applicable

how to write set expression for the given situation

I want to get count of id whose sum(dollar)<15.  how to write set expression for it???

for example : sum(dollar)< 15 is:

id= 4 , sum(dollar)=7

id=3, sum(dollar)=14

so these are less than 15 . so output should be 2.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

In a text box

=count(

{$ < id={"=sum(dollar)<15"} >}

distinct id)

View solution in original post

4 Replies
vishsaggi
Champion III
Champion III

Try this?

Your Dim as ID

and Expr as = Sum({<ID = {"=Sum(dollar) < 15"} >}dollar)

surendraj
Specialist
Specialist

This will fit your requirement...

AGGR(Sum({<ID = {"=Sum(DOLLAR) < 15"} >}DOLLAR),ID)

Thanks,

Surendra.

maxgro
MVP
MVP

In a text box

=count(

{$ < id={"=sum(dollar)<15"} >}

distinct id)

Not applicable
Author

thanks a lot , very helpful