Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I have a table like this:
LOAD
tableDataId&business_name&year&month as key
tableDataId,
business_name,
year,
month,
column_name,
column_field
Resident Dati;
that looks like this:
the blue columns are mandatory, the red columns are the fileds that the user will compile
I would like an output like this:
I really struggling to obtain this, because the "column_name" have a lot of different values and I think I should use a "for each" loop
Hi,
Please try the below code. attached the sample file and qlikview file.
It gives me Unexpected token: ':', expected one of: 'Where', 'While', 'Group', 'Order'
I think is because the values in column_name contains whitespace (for example there are values like "distinct count of sources of energy")
Hi,
try the below one with the same sample data attached.
HI Ramchall, this is not the solution for me because the column names can be over 50 different values so I must use a for loop statement
Hi,
in that case, you can use the code that I pasted earlier. You can find the attached qvw file corresponding to this.
thank you, but it It gives me Unexpected token: ':', expected one of: 'Where', 'While', 'Group', 'Order'
I think is because the values in column_name contains whitespace (for example there are values like "distinct count of sources of energy")
I suggest to rethink the entire approach because creating such huge crosstable-structures have often a lot of serious disadvantages. All these new fields must be addressed in the script as well as within the UI, are difficult to categorize, causing extra efforts for all kind of NULL or exception handling and the UI selections become easily a nightmare. Therefore I suggest to keep by the origin data-structure which usually enabled all kind of views.