Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Asiolinka
Contributor II
Contributor II

Issue with LEFT

Hi, 

I have an issue with LEFT. Trying to use it to obtain part of date from format like: 2022-05-03 00:000:0000 - I need only first 10 characters. 

Qlik can't see any records. Original data type:  #numeric #integer

Tried also: Date, Date#, Num, Text, Text Trim, 

what's more: I can do it from visualisation part.. Could you please assist me? Any ideas how can I obtain only date?

 

Labels (2)
1 Solution

Accepted Solutions
Rams-
Creator
Creator

Hi,

if you want to use Left function then use this expression:

date(left ('2022-05-03 00:000:0000',10),'YYYY/MM/DD')

Output:

Rams_0-1682497105253.png

Or you can use below function in backend:

Date(floor("Date"),'DD/MM/YYYY') , "Date" is your date field

 

Hope this helps,

help user find answers ! don't forget to mark  a solution that work for you and click the like button!

 

View solution in original post

3 Replies
Rams-
Creator
Creator

Hi,

if you want to use Left function then use this expression:

date(left ('2022-05-03 00:000:0000',10),'YYYY/MM/DD')

Output:

Rams_0-1682497105253.png

Or you can use below function in backend:

Date(floor("Date"),'DD/MM/YYYY') , "Date" is your date field

 

Hope this helps,

help user find answers ! don't forget to mark  a solution that work for you and click the like button!

 

Asiolinka
Contributor II
Contributor II
Author

Second function works!

Thx a lot!

Prem0212
Creator
Creator

Date('2022-05-03 00:000:0000','YYYY-MM-DD')     this function will  also work  for you.

Prem0212_0-1682504132588.png

 

Please like and accept the solution if u liked it