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

continues in set analysis

Hi All,

@tresesco @MayilVahanan  @Taoufiq_Zarra 

i wan to count the user id where   L1  exams continues 3times failed only ..

 here is my expression 

count({<level={1}},avgscore ={"<60"}>}User_id)      here failed criteria is  ( <60% is failed )    I have field  Avg_score.

I wan to include  3times continues failed Leval1 failed candidates only.

 

Labels (3)
2 Solutions

Accepted Solutions
Taoufiq_Zarra

@soniasweety  May be this :

=count({<Level={'1'},user={"=count({<Avgscore={'<60'}>}Level)>2"}>} distinct user)

 

output:

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

tresesco
MVP
MVP

@soniasweety , @Taoufiq_Zarra Try:

=count({<Level={'1'},user={"=count({<Avgscore={[<60]}>}Level)>2"}>} distinct user)

Note: quotation has got modified meaning in latest versions of qv. And with this expression both of you would see the same result, unlike in the other case (expression with single quotes). 🙂

 

View solution in original post

15 Replies
Taoufiq_Zarra

@soniasweety  can you share a sample data ? and the expected also from this sample ?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
soniasweety
Master
Master
Author

@Taoufiq_Zarra  attached sample.  Need result in setanalysis.

Taoufiq_Zarra

@soniasweety  May be this :

=count({<Level={'1'},user={"=count({<Avgscore={'<60'}>}Level)>2"}>} distinct user)

 

output:

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
MayilVahanan

Hi @soniasweety 

Try like below. Might be, you can include additional condition in if statement.


LOAD user,
Level,
Status,
Avgscore,
If(Status = 'Fail' and Status = Peek('Status') and user = Peek(user), 1+Peek('Cont'), 1) as Cont
FROM
[score.xlsx]
(ooxml, embedded labels, table is Sheet1);

Exp: count({<level={1},avgscore ={"<60"}, Cont={">=3"}>}user)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
soniasweety
Master
Master
Author

@Taoufiq_Zarra  same expression I tried its  showing  0 as result .. can you attach your sample.

score_test.PNG

Taoufiq_Zarra

@soniasweety  attached

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
soniasweety
Master
Master
Author

@Taoufiq_Zarra 

Still strange   …    its showing zero to me im my qvw  😞    attached my sample .  am I missing something

Taoufiq_Zarra

@soniasweety  for me its 4 (your sample )

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
soniasweety
Master
Master
Author

Im not sure.. any other alternate solution  ?   for me its showing zero 😞