Question on how Qlikview uses aliases in Load statements.
I'm trying to load one table, then create a temporary table from the Resident table, and I'm getting all kinds of errors. Code:
LOAD [Time Period] as Date,
[Scenario Step Name] as ScenarioStep,
WeekDay(Date#(Date, 'M/D/YY')) as DayOfTheWeek
(ooxml, embedded labels, table is Sheet2);
STORE STATESCENARIODATA INTO datasources/STATESCENARIODATA.QVD (QVD);
// Total visits by ScenarioStep and DayOfTheWeek
DayOfTheWeek as TempDayOfTheWeek,
ScenarioStep as TempScenarioStep,
GROUP BY TempScenarioStep, TempDayOfTheWeek;
I get an error in (bunch of problems really) with field not found using the Date alias in the WeekDay function. Then another big one, I get a field not found in the group by statement as well... does Qlikview not recognize the aliases until after the load? I'm also getting an "invalid script" or statement or something like that for the entire second table.