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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
suzel404
Creator
Creator

Create Flag

Hi all,

How can I identify with a flag in script all ID without TYPE_ID = 4 and ID WITH TYPE _ID = 4

Thanks for your help.

Regards,

!

Labels (1)
1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Not too difficult, I think. Like this (there are multiple possible solutions)?

MapIDHasType4:

MAPPING

LOAD ID, 1 AS Flag

FROM FLAG_TYPE.xls (biff, embedded labels, table is Sheet1$)

WHERE (TYPE_ID = 4);

IDsNTypes:

LOAD ID, TYPE_ID, ApplyMap('MapIDHasType4', ID, 0) AS FlagHasType4

FROM FLAG_TYPE.xls (biff, embedded labels, table is Sheet1$);

Add whatever other calculations you need to the last straight LOAD.

Best,

Peter

View solution in original post

2 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Not too difficult, I think. Like this (there are multiple possible solutions)?

MapIDHasType4:

MAPPING

LOAD ID, 1 AS Flag

FROM FLAG_TYPE.xls (biff, embedded labels, table is Sheet1$)

WHERE (TYPE_ID = 4);

IDsNTypes:

LOAD ID, TYPE_ID, ApplyMap('MapIDHasType4', ID, 0) AS FlagHasType4

FROM FLAG_TYPE.xls (biff, embedded labels, table is Sheet1$);

Add whatever other calculations you need to the last straight LOAD.

Best,

Peter

suzel404
Creator
Creator
Author

Thank you Peter.