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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Filling the blanks

Hi there

here is what I'm trying to achieve

My entries have a code, and some codes are missing

I use the code to test the entry (let's say the test is "is the code an even number ?")

When the code is missing, I know I can use the result of the test from another entry with the same value

it look like this:

IDVALUECODE
1Paris2
2Denver5
3Boston...
4Paris...
5Seattle6
6

Boston

3

My first step is to add a field to Flag the duplicate Values

then it looks like this

IDVALUECODEDuplicate
1Paris2YES
2Denver5NO
3Boston...YES
4Paris...YES
5Seattle6NO
6Boston3YES

Then I create a category field to group the entries with duplicate & the same value

IDVALUECODEDuplicateCategory
1Paris2YESParisCAT
2Denver5NO0
3Boston...YESBostonCAT
4Paris...YESParisCat
5Seattle6NO0
6Boston3YESBostonCAT

Now I run the Test and put the result ina new Field

IDVALUECODEDuplicateCategoryTestResult
1Paris2YESParisCAT1
2Denver5NO00
3Boston...YESBostonCAT?
4Paris...YESParisCAT?
5Seattle6NO01
6Boston3YESBonstonCAT0

Now my question is

How do I get to to create a fill the cells with the Question mark ?

I started creating a Category: table where I list all categories and I am trying to add a field with a value that says

If the Somme of the test result for 1 category is >= 1, then the category should be flagged as Valide


But I can't work out the bit of script that does that

or maybe there is a way to fill the "test result" field directly

anyone ?

cheers

ps: just so you know I stated with the Udemy course but I need to get to solve this now

Labels (1)
12 Replies
Anonymous
Not applicable
Author

it seems great !

I'm taking it home to work at it tonight and I'll tell you tomorow

thank you

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

How about:

Raw:

LOAD ID,

    VALUE,

    CODE,

    if(even(CODE), 1, 0) as TestResultTemp

FROM

[https://community.qlik.com/thread/315510]

(html, codepage is 1252, embedded labels, table is @1);

LEFT JOIN (Raw)

LOAD

VALUE,

max(TestResultTemp) as TestResult

Resident Raw

Group By VALUE

;

DROP FIELD TestResultTemp;

-Rob

http://masterssummit.com

http://qlikviewcookbook.com

http://www.easyqlik.com

Anonymous
Not applicable
Author

And ... Yes !

Thank you very much Rob

This is exactly what I was looking for

Jens's answer worked for the exemple but the LEFT JOIN / Group by
solution works alway

You guys made a very happy guy in Reunion Island , thank you !meme.png