Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
mattbrain
Contributor
Contributor

QlikView Create dynamic field

Morning

Can anyone offer off any assistance with this issue please. I have a spreadsheet that looks a bit like this:

CodeNumber
B819RGSDESC4
B819TGDESC3
B819TGMDESC3

I am trying to find a way to dynamically create the Code field, to copy the Code field, with the number in the Number column.

Hope that makes sense, would basically create two tables that looks like this:

NewHeaderCode
B819RGSDESC1B819RGSDESC
B819RGSDESC2B819RGSDESC
B819RGSDESC3B819RGSDESC
B819RGSDESC4B819RGSDESC
B819TGDESC1B819TGDESC
B819TGDESC2B819TGDESC
B819TGDESC3B819TGDESC
B819TGMDESC1B819TGMDESC
B819TGMDESC2B819TGMDESC
B819TGMDESC3B819TGMDESC

Thanks everyone

4 Replies
marcus_sommer

Try something like this:

Load Code as NewHeader, iterno() as IterNo, rowno() as RowNo, recno() as RecNo From YourExcel

while iterno() <= Number;

- Marcus

tresesco
MVP
MVP

Try like:

Load
      Code,
     Code&IterNo() as NewHeader

While IterNo()<=Number;

LOAD Code,
    Number
FROM
[https://community.qlik.com/thread/185412]
(html, codepage is 1252, embedded labels, table is @1) where not isnull(Code);

sunilkumarqv
Specialist II
Specialist II

Try this,

Data:

LOAD * INLINE [

   Code

   B819RGSDESC

   B819RGSDESC

   B819RGSDESC

   B819RGSDESC

    B819TGDESC

    B819TGDESC

    B819TGDESC

    B819TGMDESC

    B819TGMDESC

    B819TGMDESC

];

LOAD Code&AutoNumber(RecNo(),Code) as NewHead,Code Resident Data;

DROP Table Data;

mattbrain
Contributor
Contributor
Author

Fantastic everyone, thank you all for your help.

All working now, very much appreciated.

Community Browser