Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dummy ItemNr

Hi,

Is there anybody who have a solution for creating a Dummy Afdkode for those VareNr listed below?

Dummy.PNG

I've tried with this

Concatenate (Vare)

LOAD * INLINE [

VareNr, Afkode

31250,  S

31251,  S

31260,  S

];

without any luck.

/Nong

6 Replies
dapostolopoylos
Creator III
Creator III

Try that:

LOAD

     *,

     RowNo() as Afkode;

LOAD * INLINE [

VareNr

31250

31251

31260

];

Father/Husband/BI Developer
Anonymous
Not applicable
Author

Hi,

Perhaps look at autonumber

sibin_jacob
Creator III
Creator III

Use Join function instead of Concatenate.

Join (Vare)

LOAD * INLINE [

VareNr, Afkode

31250,  S

31251,  S

31260,  S

];

pooja_prabhu_n
Creator III
Creator III

Hi,

Use join instead of Concatenate.

Use of concatenate will give data in the below format'

a.PNG

Join:

Vare:

LOAD * INLINE [

VareNr, Varekategorikodex

31250,  FRAGT

31251,  FRAGT

31260,  FRAGT

];

Join (Vare)

LOAD * INLINE [

VareNr, Afkode

31250,  S

31251,  S

31260,  S

];


b.PNG

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Try this:


Left Join (Vare)

LOAD * INLINE [

VareNr, Afkode

31250,  S

31251,  S

31260,  S

];

sunny_talwar

Why don't you just do this if you want all null AfdKode to be converted to 'S'

LOAD VareNr,

   If(Len(Trim(AfdKode)) = 0, 'S', AfdKode) as AfdKode,

    VareKategoriKodeX,

    VareKategoriKode

FROM ...;

If you want just VareNr 31250, 31251, 31260 to have S for AfdKode... then try this

LOAD VareNr,

   If(Match(VareNr, 31250, 31251, 31260), 'S', AfdKode) as AfdKode,

    VareKategoriKodeX,

    VareKategoriKode

FROM ...;