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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Foodie123
Contributor III
Contributor III

QlikView Script Error: Field Not Found

Hello experts,

I am trying to calculate the loss ratio from fields that are already in the script. 

I created new fields from calculating existing fields together, which seems to work except for one of them. For some reason the "Total Freq" field is not found and I'm not sure why..

Foodie123_0-1686159109754.png

Thank you in advance!

 

Labels (2)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

That's because this field is missing in the bottom Load. The top Load loads from the bottom Load, so if BrokerID isn't there, then it can't load it.

Try to include a star in the bottom Load
Load ... ;
Load *,
   <calculation> as Total_freq
   From ...

View solution in original post

5 Replies
Lokesh_5045
Creator
Creator

If it is just addition of multiple fields, try RangeSum().

RangeSum( Field1, Field2, Field3 ...)

hic
Former Employee
Former Employee

You cannot use created fields in calculations to create other fields within the same Load statement.

Try a preceding load instead:

Load
Total_freq * Total_sev as Total_loss;
Load
<calculation1> as Total_freq,
<calculation2> as Total_sev,
...

See more on https://community.qlik.com/t5/Design/Preceding-Load/ba-p/1469534

Foodie123
Contributor III
Contributor III
Author

Thanks Hic!

I tried that but now I am getting another error.. it says the BrokerID field is not found.

Foodie123_0-1686175264108.png

Am I missing something?

hic
Former Employee
Former Employee

That's because this field is missing in the bottom Load. The top Load loads from the bottom Load, so if BrokerID isn't there, then it can't load it.

Try to include a star in the bottom Load
Load ... ;
Load *,
   <calculation> as Total_freq
   From ...

Foodie123
Contributor III
Contributor III
Author

Ohh okay, that makes sense! 

Thank you so much!