Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
pauldamen
Partner - Creator II
Partner - Creator II

Changing data in crosstable

Dear all,

I have an excel file (which is on the second tab off the script in the attached file). I am using a crosstable to get the data from the first row to a column and after that using the num function to set the dates back to dates, so far so good.

But for some strange reason it is overriding the column behind the dates which contain the actual data. Instead off displaying the data it takes the date number and puts it in that column.

Could anyone help me? I have attached the Qlikview doc and the Excel.

Regards,

Paul

1 Solution

Accepted Solutions
Gysbert_Wassenaar

I think it's using the number as literal value as well as as field name. When I enclose the numbers in square brackets the values get loaded correctly:

Onderliggend:

CrossTable(Datum, Data, 2)

LOAD [KPI nr],

     Onderwerp,

     [40544],

     [40575],

     [40603],

     [40634],

     [40664],

     [40695],

     [40725],

     [40756],

     [40787],

... etc.

Load * seems to work too.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
pauldamen
Partner - Creator II
Partner - Creator II
Author

The strange thing is that if I load the data everything looks good, even after I performed the cross table. But when I press reload script and I look at the result after the load the date column and the data column with the numbers are identical.

Gysbert_Wassenaar

I think it's using the number as literal value as well as as field name. When I enclose the numbers in square brackets the values get loaded correctly:

Onderliggend:

CrossTable(Datum, Data, 2)

LOAD [KPI nr],

     Onderwerp,

     [40544],

     [40575],

     [40603],

     [40634],

     [40664],

     [40695],

     [40725],

     [40756],

     [40787],

... etc.

Load * seems to work too.


talk is cheap, supply exceeds demand