Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Krish2459_58
Creator
Creator

Column level data availability flag

Hi,

I need to flag the column if is there more than one record as 'Y' else 'N'.

I tried this (If(len("Make Good")>0,'Y','N') as "Make Good") but it gives the row level flagging. I need at column level flagging.

 

Krish2459_58_0-1707199132603.png

Required output:

Krish2459_58_1-1707199193462.png

Thanks..

Labels (2)
3 Solutions

Accepted Solutions
Anil_Babu_Samineni

@Krish2459_58 You can try the same with ValueList() as island tabular. 

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

jochem_zw
Partner Ambassador
Partner Ambassador

think you are trying to do it in the script editor? If so below code will work but using an aggregation function will mean you will have to use a group by also.

If(Count("Make Good")>0,'Y','N') as "Make Good"

but you can also do in a table object (not script), create an expression like this: If(Count("Make Good")>0,'Y','N') and give the expression a label

View solution in original post

vinieme12
Champion III
Champion III

try below

=if(Count(Distinct TOTAL [Make Good])>0,'Y','N')

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
Anil_Babu_Samineni

@Krish2459_58 You can try the same with ValueList() as island tabular. 

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
jochem_zw
Partner Ambassador
Partner Ambassador

think you are trying to do it in the script editor? If so below code will work but using an aggregation function will mean you will have to use a group by also.

If(Count("Make Good")>0,'Y','N') as "Make Good"

but you can also do in a table object (not script), create an expression like this: If(Count("Make Good")>0,'Y','N') and give the expression a label

vinieme12
Champion III
Champion III

try below

=if(Count(Distinct TOTAL [Make Good])>0,'Y','N')

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Krish2459_58
Creator
Creator
Author

Hi,

Tried this and it works.

if(count(if(len("Make Good")=0,null(),'1'))>0,'Y','N') as "Make Good"

 

Thanks..