Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
vikas_nandanwar
Creator II
Creator II

Filters at the opening of APP

Hi,

I have a group of data where i have regions as one of the column header

Like

OGC

JNY

JIN

JAN

JIS

JCN

DC

JHK

I wan't a filter at the start with JIN and DC

I am using single below expression for single filter in Data Editor -

Load [ODC], [Date], ... from [Lib://...] *ooxml, ...) Where OGC = 'JIN';

But for multiple filter this donot work -

Load [ODC], [Date], ... from [Lib://...] *ooxml, ...) Where OGC = 'JIN' OR 'DC';

this donot work.

Please help.

Thanks,

Vikas


15 Replies
prma7799
Master III
Master III

PFA...

hhh.png

Test:

LOAD OGC,

     Dept,

     Date,

     Qty,

     Amount

FROM

(ooxml, embedded labels, table is Sample)

where Match(OGC,'DC' ,'JIN') ;

jonathandienst
Partner - Champion III
Partner - Champion III

This works:


LOAD OGC,

     Dept,

     Date,

     Qty,

     Amount

FROM

(ooxml, embedded labels, table is Sample)

Where Match(OGC, 'JIN', 'DC')

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
vikas_nandanwar
Creator II
Creator II
Author

This work with excel,

I am using database from SQL server and it gives error with comma (,)

vikas_nandanwar
Creator II
Creator II
Author

This work with excel,

I am using database from SQL server and it gives error with comma (,)

petter
Partner - Champion III
Partner - Champion III

In a SQL statement you would need to use a different syntax:

SQL

  SELECT

     ......

  WHERE OGC IN('JIN','DC');

vikas_nandanwar
Creator II
Creator II
Author

Thanks  this worked