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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Field not found - <=>

Hey Everyone ,  i need some help over here i don't know why i am getting this error2.PNG

8 Replies
undergrinder
Specialist II
Specialist II

HI Jhonatan,

Could you share the original code snippet?

On the picture I can see an . after LOAD and the where clause is truncated. Hard to say anything based on it.

G.

ramoncova06
Partner - Specialist III
Partner - Specialist III

you are most passing a variable to filter something on the script, try tracing the variable out and see if anything is displayed, another option is to add single quotes to it something like '$(vVariable)'

Not applicable
Author

Hey undergrinder

Left JOIN (INV_SALES_TEMP)

LOAD  /* CUR_CURRENCY AS INV_CURRENCY ,*/

CUR_EXCHANGE AS CUR_EXCHANGE3

Resident CURRENCIES Where CUR_CURRENCY = $(vForeignCurrency);

arthur_dom
Creator III
Creator III

try:

Left JOIN (INV_SALES_TEMP)

LOAD  /* CUR_CURRENCY AS INV_CURRENCY ,*/

CUR_EXCHANGE AS CUR_EXCHANGE3

Resident CURRENCIES Where CUR_CURRENCY = '$(vForeignCurrency)';

rwunderlich
MVP
MVP

I agree with Arthur that you need single quotes. But an additional problem is that vForeignCurrency has not value. Where in the script is that variable getting set?

-Rob

undergrinder
Specialist II
Specialist II

Hi Jhonatan,

You should put your variable into ' ' characters.

Your solution would work, if your variable's type was number.

Examples:

  • Where Amount = $(vFoo);  Valid, if Amount and vFoo is also number
  • Where City = '$(vFoo)';      Valid, if City and vFoo is string
  • Where City = $(vFoo);       Valid, if let vFoo = 'Column name'; in this case vFoo holds a column name.

G.

Not applicable
Author

Hey undergrinder,

do i have to set it up before ? or do the mechanism will recognize the

'$(vForeignCurrency)'?

undergrinder
Specialist II
Specialist II

Hi Jhonatan,

What do you mean exactly?

If you're thinking about giving value to a variable, I say yes.

SET vForeignCurrency = 'dollar';

and the

...

Resident CURRENCIES Where CUR_CURRENCY = '$(vForeignCurrency)';

should work.


G.