Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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
MVP
MVP

Hi @manojciti  please try something like this :

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

=

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.

View solution in original post

2 Replies
QFabian
MVP
MVP

Hi @manojciti  please try something like this :

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

=

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
manojciti
Contributor III
Contributor III
Author

Fantastic! It works. 

 

Cheers!