Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
fgolmahi
Contributor III
Contributor III

syntax function" Where" in edit escript?????

Hi Dear Friends

Please help me,I wrote function " Where " in edit script it is ok?

LOAD a,

     b

FROM

[file.xlsx]

(ooxml, embedded labels, table is Sheet1);

Where a=3;

This is error

See attached please

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Remove one semicolon

LOAD a,

     b

FROM

[file.xlsx]

(ooxml, embedded labels, table is Sheet1) Where a=3;

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

View solution in original post

9 Replies
Anil_Babu_Samineni

Remove one semicolon

LOAD a,

     b

FROM

[file.xlsx]

(ooxml, embedded labels, table is Sheet1) Where a=3;

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
prma7799
Master III
Master III

Remove colon after "(ooxml, embedded labels, table is Sheet1);"

colon means end of the statement

Use colon (;)  after your last code of the script ...

fgolmahi
Contributor III
Contributor III
Author

Thanks

fgolmahi
Contributor III
Contributor III
Author

Thanks

prma7799
Master III
Master III

Glad to help you....

fgolmahi
Contributor III
Contributor III
Author

Hi Dear Friend

Please help me,

How to use Function   " Where " in edit script If Read data from database ( SQL)   ?????

prma7799
Master III
Master III

Like this in Qlikview

LOAD Code as NEW_Code,

     Name as NEW_Name;

SELECT Code,

       Name

FROM [Table Name]

WHERE [Code] LIKE 'PIN' AND [Dimension Value Type] = 0;

And in SQL

SELECT Code,

       Name

FROM [Table Name]

WHERE [Code] LIKE 'PIN' AND [Dimension Value Type] = 0;

Anil_Babu_Samineni

You can use either one approach from below

Approach 1

Connection String .....

SQL SELECT a, b

FROM <Table-Name> Where a=3;

Approach 2

Connection String .....

LOAD *  Where a=3;

SQL SELECT a, b

FROM <Table-Name>;

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
fgolmahi
Contributor III
Contributor III
Author

thanks my friend

Approach 2 is correct