Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
arunqlik2view
Creator
Creator

Want to exclude Year'2017' in the Qlikview

Hello Qlikview Experts,

 

I'm trying to not show any dates for the year 2017. I did try the  syntax in the Qlikview Editor as per the instruction in the previous blog - https://community.qlik.com/t5/New-to-QlikView/How-to-exclude-unwanted-year-in-Date-field/m-p/839470 

But , it doesn't seem to work for me . 

The syntax I tried from that Blog is Where Year(Relevant_Date) <> 2017;

 

Please let me know what am I doing wrong here. 

 

Thanks & Regards,

Arun 

8 Replies
PrashantSangle

Hi, 

can you share screens shot of your work??

 

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 🙂
arunqlik2view
Creator
Creator
Author

qlik_editor.jpg

ruma_barman
Creator
Creator

Remove single inverted commas and check

Somasundaram
Creator III
Creator III

Try this,

SQL SELECT *
FROM ABCDB.TTTEX_SEGMENT_WISE_DAILY_REVENUE
where Year(Relevany Date) <>'2017';

 


-Somasundaram

If this resolves your Query please like and accept this as an answer.
PrashantSangle

Hi Arun,

Your where clause is detecting in attached script. It is mainly because of back quotes `

remove that back quote which you applied before and after TTTEX_SEGMENT_WISE_DAILY_REVENUE this field

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 🙂
arunqlik2view
Creator
Creator
Author

hi thanks for the reply, i tried didn't work

arunqlik2view
Creator
Creator
Author

hi thanks for the reply, i tried didn't work

sunny_talwar

If this is connection to Oracle, then you can try this

WHERE TRUNC(RELEVANT_DATE, 'YEAR') <> '1JAN2017'