Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am currently loading one of my data tables into Qlikview using the following script -
SDUE:
LOAD * FROM
(
I would like make a change to one of the fields as it is loaded in -
Year,'20'&right(Year,2) as AcademicYearShort,
How do I incorporate this in the LOAD script?
Thanks
Greg
SDUE:
LOAD *,
'20'&right(Year,2) as AcademicYearShort;
LOAD * FROM
(
or
LOAD
*,
'20'&right(Year,2) as AcademicYearShort
FROM
(
What is the expected one from this
Right(Year,2) as AcademicYearShort
OR
Year & '20' & Right(Year,2) as AcademicYearShort
Hi Greg, try this:
SDUE:
LOAD *,
Year,'20'&right(Year,2) as AcademicYearShort_new
FROM
(
DROP FIELD AcademicYearShort; //IF IT EXISTS
RENAME FIELD AcademicYearShort_new TO AcademicYearShort;
Regards!!
Hi Greg,
Can you tell how 'Year' looks like, and what you want as an end result?
If your 'Year' contains the actual year, then I would imagine your Academic year would look like Year-Year+1
In that case, you add
SDUE:
LOAD * ,
Year&'-'&(Year+1) as AcademicyearShort
FROM
(
If you need it like '15-'16 then it would become
'''&right(Year,2)&'-''&(right(Year,2)+1)
Regards,
Johan