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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
dolly777
Contributor III
Contributor III

How to use Flag in qlikview Script?

Hi All,

I have two fields like Recommended and non-Recommended . I need to use flag Y for Recommended and flag N for non-Recommended field and  also merge these two fields into one field with respective flag . Could you please give some idea how to write script in qlikview ?

Thanks!

1 Solution

Accepted Solutions
arvind_patil
Partner - Specialist III
Partner - Specialist III

HI Nirmala,

If They are in seprate table just create flag in each table as Bleow:

'Recommended ' as Flag

in second table:

'non-Recommended' as Flag


ANd then concate both the files.


If in same qvd Then load first recommended data with flag and then non-Recommended and concate both files.

Thanks,

Arvind Patil

View solution in original post

4 Replies
arvind_patil
Partner - Specialist III
Partner - Specialist III

HI Nirmala,

If They are in seprate table just create flag in each table as Bleow:

'Recommended ' as Flag

in second table:

'non-Recommended' as Flag


ANd then concate both the files.


If in same qvd Then load first recommended data with flag and then non-Recommended and concate both files.

Thanks,

Arvind Patil

agigliotti
MVP
MVP

if( Recommended = 'Y', 'Recommended',

     if( non-Recommended = 'Y', 'non-Recommended' ) ) as Flag

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
dolly777
Contributor III
Contributor III
Author

Hi Arvind,

I want to append Reccommended with 'Y' and non-Reccommended with 'N' in one field

Load

[Constrained $],

[Recommended $],

//if( [Constrained $] , ([Constrained $]  & '            N'),

  // if ([Recommended $], ([Recommended $]&'            Y'))) as [Rec/non-Rec],

Quote_Status

from SteeringRawData.xlsx

arvind_patil
Partner - Specialist III
Partner - Specialist III

Happy  to help you

Thanks,

Arvind Patil