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

Create a flag field in script

I've loaded about 2million rows with sales data into my qvw model. There are about 100 customers that need to be flagged for possible exclusion from the total. To make this exclusion optional, I'd like to create a new field flagging the 100 customers with a 'X' and all other entries 'Y'; this would allow a simple list box click to either include or exclude the 100.

Is this possible to do in the load script?

Thank you in advance.

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I'm sure there is more than one way to answer this question. But a solution that comes to mind is to use a Map that assigns 'Y' to the excluded group and 'N' to all others. See attached example.

-Rob

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I'm sure there is more than one way to answer this question. But a solution that comes to mind is to use a Map that assigns 'Y' to the excluded group and 'N' to all others. See attached example.

-Rob

Not applicable
Author

Thank you. This works exactly.