Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
josemariagarcia
Contributor
Contributor

Data loader - using autocalendar.Year

This is probably a very basic question (I am a newbie with Qlik). I'd like to create a new table based on an existing one. I want that table to contain a field from autocalendar. I am trying the following code:

[Stats]:
NOCONCATENATE
Load
  [Expected date.autoCalendar.Year] as Year,
  Count([Dossier Ref]) as Dossiers
Resident [Sheet1] WHERE MATCH([Type], 'A', 'B', 'C')
GROUP BY [Year];

It is complaining about "Field 'Year' not found"

What am I doing wrong?

 

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

"Year" doesn't exist until after the load is completed. Perhaps instead:

GROUP By [Expected date.autoCalendar.Year]

-Rob

josemariagarcia
Contributor
Contributor
Author

That did not worked: 

Field 'Expected date.autoCalendar.Year' not found

But I managed to make it work with:

GROUP BY Year([Expected date])