Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Welcome to Qlik Community! Check out our new navigation! FIND OUT MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
Creator II
Creator II

Extract Year from Date

Hi ,

I have date field with below records. Please help me to derive year field from below date field.

Date

CMM 01 May 2020

CCM 02 Apr 2019

CCM 05 Aug 2020

CCM 10 April 2020

Thanks in advance

Labels (1)
1 Solution

Accepted Solutions
Ivan_Bozov
Luminary
Luminary

To get the number: RIGHT(Date,4) AS Year
To format as date: DATE(DATE#(RIGHT(Date,4),'YYYY'),'YYYY') AS DateYear

vizmind.eu

View solution in original post

1 Reply
Ivan_Bozov
Luminary
Luminary

To get the number: RIGHT(Date,4) AS Year
To format as date: DATE(DATE#(RIGHT(Date,4),'YYYY'),'YYYY') AS DateYear

vizmind.eu