Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
sibusiso90
Creator III
Creator III

Field not Found

Field not found - <<=>

I got that error and I don't know what is the cause and an alternative way to do this?

error.JPG

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Not sure if Day is really needed, this should work also:

Temp:

LOAD Min(Date#(Period, 'YYYYMM')) As minDate,

          Max(Date#(Period, 'YYYYMM')) As maxDate

Resident [Flight Data];

LET varMinDate = Peek('minDate', 0, 'Temp');

LET varMaxDate = Peek('maxDate', 0, 'Temp');

View solution in original post

6 Replies
oknotsen
Master III
Master III

Can you also post the part in which you define the variables varMinDate and varMaxData?

And yes, it can be done different and I always do it different:

TempCalendar:

Load

Date($(varMinDate) + RowNo() -1) AS TempDate

AUTOGENERATE $(varMaxDate) - $(varMinDate) + 1;

Still might not fix your problem though, as I think that is in the part where you set your variables. I assume a typo or something.

May you live in interesting times!
sibusiso90
Creator III
Creator III
Author

error 2.JPG

the Period field was a string function, with the format YYYYMM so was just changing it to date field.

tamilarasu
Champion
Champion

Hi Sibusiso,

Try like below,

Temp:

Load

Min(Date#(Period & '01', 'YYYYMMDD')) As minDate,

Max(Date#(Period &'01', 'YYYYMMDD')) As maxDate

Resident [Flight Data]

sunny_talwar
MVP
MVP

Not sure if Day is really needed, this should work also:

Temp:

LOAD Min(Date#(Period, 'YYYYMM')) As minDate,

          Max(Date#(Period, 'YYYYMM')) As maxDate

Resident [Flight Data];

LET varMinDate = Peek('minDate', 0, 'Temp');

LET varMaxDate = Peek('maxDate', 0, 'Temp');

tamilarasu
Champion
Champion

Yes. It's not required. I just added for better understanding!!

oknotsen
Master III
Master III

I suggest you add a TRACE to check the content of those variables. If the content is something weird or null, you have your source of the trouble.

TRACE Variable varMinDate is $(varMindDate);

May you live in interesting times!