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: 
MuraliPrasath
Creator III
Creator III

Need Custom Column by existing column

Hi, 
I need to create a new column called Final Pass/Fail. The logic should be: if a TitleNo value appears more than once, and at least one of its corresponding rows in the Pass/Fail column is Pass, then all rows with that TitleNo should be marked as Pass in the new column. Otherwise, mark them as Fail.

Could you help me on this? Thanks!

MuraliPrasath_0-1757212175199.png

 

Labels (5)
1 Solution

Accepted Solutions
Amit_Prajapati
Creator II
Creator II

Hi, You can try with below one.

If (count(total <[Title no]> [Title no])>1 and Pass/Fail='Pass', 'Pass','Fail') or

if (aggr( count(Title no),Title no)>1 and Pass/Fail = ''Pass','Pass','Fail')

View solution in original post

3 Replies
Vegar
MVP
MVP

You could try something like this:

If (count(total <[Title no]> [Title no])>1, 'Pass','Fail')

Amit_Prajapati
Creator II
Creator II

Hi, You can try with below one.

If (count(total <[Title no]> [Title no])>1 and Pass/Fail='Pass', 'Pass','Fail') or

if (aggr( count(Title no),Title no)>1 and Pass/Fail = ''Pass','Pass','Fail')

Chanty4u
MVP
MVP

Try this 

=If(Count({<PassFail={'Pass'}>} DISTINCT TitleNo) > 0, 'Pass','Fail')