Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
yvonne-c
Creator
Creator

Sum between values

Hi all

Please can you help change the following expression to include values between 20000 and 50000 - I just cannot get it to work!

=Sum(Aggr(If(Sum([Price]) <=50000  and Credit_code='A', Sum([Price])), ReferredTo))

Thanks

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this?

Sum(Aggr(If(Sum(Price) >= 20000 and Sum(Price) <= 50000, Sum(Price)), ReferredTo))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

4 Replies
Anil_Babu_Samineni

May be this?

Sum(Aggr(If(Sum(Price) >= 20000 and Sum(Price) <= 50000, Sum(Price)), ReferredTo))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
yvonne-c
Creator
Creator
Author

Simple as that!!

Thankyou

PrashantSangle

Hi,

another possible way

1: sum(aggr(sum({<Price={">=20000<=50000"}>}Price),ReferredTo))

or

2: sum(aggr(if(price>=20000 and price <=50000,price),ReferredTo))

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
devarasu07
Master II
Master II

=sum({<Price= {">=20000<=50000"},Credit_code={'A'}> } Price)