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: 
Anonymous
Not applicable

data reduce?

Hi

i have

city:

bang

che

hyd

kerala   and

area:

tinfactory

annasalai

hitechcity

ooty

sub area:

factory1

factory2

factory3

factory4

have data from last yer to till today  

my req i want write a condition to show data for 'ooty'   only nov 2014 onwards before nov 2014 want exclude ?

how ?


5 Replies
PrashantSangle

Hi,

Acheive this in two steps;

step1:

Load all data excluding Area='ooty'

Step2:

Load Data only for Area='ooty' and Month Year>='Nov 2014'

and concatenate with table created in step1;

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Ralf-Narfeldt
Employee
Employee

I assume you have a date field in the data as well, let's call it dateField.

So you could add a condition at the end of your LOAD statement like:

WHERE area = 'ooty' AND dateField > Date('2014/11/30')

Of course you have to change dateField to your field name and adjust the date format to the format you use

Anonymous
Not applicable
Author

but i want exclude this date for only  'ooty'  if i go this exclusion  for other areas also dates will get excluded

Ralf-Narfeldt
Employee
Employee

Ah, didn't understand you wanted the exclusion for ooty only. Just a small change:

WHERE NOT (area = 'ooty' AND dateField < Date('2014/12/01'))

Anonymous
Not applicable
Author

Go with max dreamer's suggestion.

That is the correct one

Let me know if you face any issues