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

Count value based on Condition in front end

Hi All,

I have 4 Fields like Cust Id,Sale,Target,Month

then i calculated the percentage of (sale/target)*100 for each month

Now i need the Cust Id's with count of months those are having Percentage more than 60%.

output like:

Custid>60
C018
C029
C0310
C047
C054
C068
C0710
C087
C097
C105

sample Data:

1 Solution

Accepted Solutions
maxgro
MVP
MVP

in a straight table chart with custid as dim use the expression

count(distinct

if(aggr(sum(Sale)/sum(Target), Month,Custid)>0.6,Month)

)

1.png

View solution in original post

2 Replies
sundarakumar
Specialist II
Specialist II

PFA the application with the requirement completed on the attached sample. (Straight table as mentioned)

Thanks

Sundar

maxgro
MVP
MVP

in a straight table chart with custid as dim use the expression

count(distinct

if(aggr(sum(Sale)/sum(Target), Month,Custid)>0.6,Month)

)

1.png