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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

load value like a field

HI, I have got a table like with this kind of structure.

FieldValor
ParamAValor1
ParamAValor2
ParamBValor3
ParamBValor4

I would like to load like this table:

ParamAParamB
Valor1Valor2
Valor2Valor4

It seems I have to use a Transpose or a crosstable or both... I cannot find a way to do this.

Someone already to pass though it?

Thanks,

Eva

1 Solution
5 Replies
Not applicable
Author

Are there many different parameters?

If not you can load the values from the first table.

F.i., let's call the first table tmp_table

You can Load the other tables like this.

ParamA:

LOAD          Valor

Resident tmp_table

where Field = paramA

ParamB:

LOAD Valor

Resident tmp_table

where Field = paramB

I hope it helps.

Luiz

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Input:

LOAD * INLINE [

    Field, Valor

    ParamA, Valor1

    ParamA, Valor2

    ParamB, Valor3

    ParamB, Valor4

];

Result:

Load  Valor as ParamA, RowNo() as Dummy

Resident Input where Field = 'ParamA';

join

Load  Valor as ParamB, RowNo() as Dummy

Resident Input where Field = 'ParamB';

drop field Dummy;


talk is cheap, supply exceeds demand
Not applicable
Author

My issue is. I don't know how many parameters I need to take.

In Microsoft they named it Pivot function.

Not applicable
Author

Do you use to do generic often. I would like to try to do a generic loading.

(My husband doing that on MS, and we would like challenge QV on it.)

Anyway, thanks a lot for your answers guys !! It was really helpfull.