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

How to filter on date column and only extract dates and not text in Qlik Sense Script editor using where condition

Hi Team,

I am loading data from excel and one of the column is Date. But it also contains some text values. so just want to load only dates and ignore text values.

Is there any function or logic to filter only dates?

Labels (1)
6 Replies
vchuprina
Specialist
Specialist

Hi,

Maybe you can use KeepChar function in the example below it loads only numerical symbols 

KeepChar ( YourField, '1234567890' ) 

 

Regards,

Vitalii

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
vish123
Creator III
Creator III
Author

Hi Vchprina,

I have tried above formula and but it did not work for me. Is there any other way?

vchuprina
Specialist
Specialist

Could you please share an example of your data?

 

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
vish123
Creator III
Creator III
Author

Hi Vchuprina,

Sorry, I cannot share the data as it is confidential.

vchuprina
Specialist
Specialist

Can you send the structure of your field, for instance:

some text yyyy/mm/dd,  some text

yyyy/mm/dd,  some text, numeric values (but not date)

I try to understand how it looks

Press LIKE if the given solution helps to solve the problem.
If it's possible please mark correct answers as "solutions" (you can mark up to 3 "solutions").
anat
Master
Master

If( Len(Num(Field))=5 , 'Date', 'String')