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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expressions calculation

Hi Experts

in my qvw i am calculating AREAMANAGER count against REGIONMANAGER to calculate targets

i am using this expression to count that

=SUM(AGGR(AREAMANAGER,REGIONMANAGER,BUSINESSMANAGER,BRANCHNAME))

the values yielding are correct but there is a new condition like if AREAMANAGER count exceeds 19 for a REGIONMANAGER then it should write as 19

i have two REGIONMANAGER exceeding 19 AREAMANAGER

how can i change this expression

please suggest

1 Solution

Accepted Solutions
sunny_talwar

May be this:

=If(SUM(AGGR(AREAMANAGER,REGIONMANAGER,BUSINESSMANAGER,BRANCHNAME)) >= 19, 19, =SUM(AGGR(AREAMANAGER,REGIONMANAGER,BUSINESSMANAGER,BRANCHNAME)))

View solution in original post

3 Replies
sunny_talwar

May be this:

=If(SUM(AGGR(AREAMANAGER,REGIONMANAGER,BUSINESSMANAGER,BRANCHNAME)) >= 19, 19, =SUM(AGGR(AREAMANAGER,REGIONMANAGER,BUSINESSMANAGER,BRANCHNAME)))

sasiparupudi1
Master III
Master III

if (AGGR(count(AREAMANAGER),REGIONMANAGER)>=19,19,SUM(AGGR(AREAMANAGER,REGIONMANAGER,BUSINESSMANAGER,BRANCHNAME)))

Not applicable
Author

HI Sunny

Thanks

=If(SUM(AGGR(AREAMANAGER,REGIONMANAGER,BUSINESSMANAGER,BRANCHNAME)) >= 19, 19, SUM(AGGR(AREAMANAGER,REGIONMANAGER,BUSINESSMANAGER,BRANCHNAME)))


after removing the = it worked perfect