Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
MuraliPrasath
Creator III
Creator III

How to exclude unwanted year in Date field.

Hi,

I just want to omit this year 1900 in my Date field.

exasdf.PNG

1 Solution

Accepted Solutions
amit_saini
Master III
Master III

Try:

where not Match(Year, '1900');

Thanks,

AS

View solution in original post

5 Replies
sunny_talwar

Do it in the scrip while you are loading them

LOAD Date,

          otherFields

FROM xyz

Where Year(Date) <> 1900;

amit_saini
Master III
Master III

Try:

where not Match(Year, '1900');

Thanks,

AS

sunny_talwar

Hahahaha your solution showed me my mistake, I was doing = 1900 instead of <> 1900

amit_saini
Master III
Master III

haha no worries

MayilVahanan

Hi

Try like this

Load * from datasource where Year(Date) <> 1900;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.