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

if condition on AGGR

HI, 

 

I have 2 expression to show count of name which is having percentage calculated(amnt2/amnt1) which is >80 and less than 50 but now i want 3rd expression to show percentage (amnt2/amnt1) should be >50 and <80

 

Sum(Aggr(If((amount2/[amount 1])*100 > 80, 1, 0), name)) 

Sum(Aggr(If((amount2/[amount 1])*100 < 50, 1, 0), name)) 

 

Appreciate response !

 

Regards

Manoj

 

 

 

Labels (1)
1 Solution

Accepted Solutions
QFabian
Specialist III
Specialist III

Hi @manojciti  please try something like this :

Sum(Aggr(If((amount2/[amount 1])*100 >= 50 and (amount2/[amount 1])*100 <= 80, 1, 0), name)) 

=

 

QFabian

View solution in original post

2 Replies
QFabian
Specialist III
Specialist III

Hi @manojciti  please try something like this :

Sum(Aggr(If((amount2/[amount 1])*100 >= 50 and (amount2/[amount 1])*100 <= 80, 1, 0), name)) 

=

 

QFabian
manojciti
Contributor III
Contributor III
Author

Fantastic! It works. 

 

Cheers!