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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
M_Lhermitte
Contributor
Contributor

Field not found

hi everyone, 

could you please help me with this issue? when loading data, Qlik tells me the field "CustomerType" is not found. If I delete it, then the next field that is in the "where" clause is not found etc.

Any idea to solve this issue?

Thank you,

Marguerite

the script is:

NoConcatenate
[inst_per_course_1]:

Load
CourseIdentifier,
TraineeIdentifier,

count(DISTINCT Trigram) as nb_instructor

resident [RawData_LOAD]
where match([CustomerType], 'Airline', 'Internal') and match([EquipmentType], 'APT', 'FBS', 'FFS', 'FTD', 'FNPT')
and match(Competence, 'PG', 'PH')
group by CourseIdentifier, TraineeIdentifier
;


NoConcatenate
[inst_per_course_2]:

Load
CourseIdentifier,
nb_instructor,
if(nb_instructor = '1', '1',
if(nb_instructor = '2', '2',
if(nb_instructor = '3', '3',
if(nb_instructor = '4', '4',
if(nb_instructor = '5', '5',
if(nb_instructor = '6', '6',
if(nb_instructor = '7', '7',
if(nb_instructor = '8', '8', nb_instructor)))))))) as nb_instructor_per_trainee

resident [inst_per_course_1]
;

 
 

 

Labels (1)
1 Reply
Anil_Babu_Samineni


@M_Lhermitte wrote:

NoConcatenate
[inst_per_course_1]:

Load
CourseIdentifier,
TraineeIdentifier,

[EquipmentType],

[CustomerType],

count(DISTINCT Trigram) as nb_instructor

resident [RawData_LOAD]
where match([CustomerType], 'Airline', 'Internal') and match([EquipmentType], 'APT', 'FBS', 'FFS', 'FTD', 'FNPT')
and match(Competence, 'PG', 'PH')
group by CourseIdentifier, TraineeIdentifier, [EquipmentType], [CustomerType];

 I see that red part is missing..

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful