Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
madhuqliklondon
Creator II
Creator II

Composite Key with date

Hi all,

I am creating a composite key to join two tables to get matching values. 

I am using below composition but it is returning only up to number, please correct me.

ID &'|'& Number &'|'& Date(Date#( DateTime, 'DD/MM/YYYY HH:MM:SS'),'DD-MM-YYYY') As _Key

Data: 

 [ ID, Number, DateTime

   22,564746474647, 15/07/2020 20:04:45

]

current output: 22|564746474647|

Expected output: 22|564746474647|15-07-2020

Thanks in advance

Labels (2)
1 Solution

Accepted Solutions
madhuqliklondon
Creator II
Creator II
Author

This worked for me 

ID &'|'& Number &'|'& Date(Floor( Date(DateTime)),'DD/MM/YYYY') AS _Key

Thank you Kush for your support and time.

 

View solution in original post

2 Replies
Kushal_Chawda

try below

ID &'|'& Number &'|'& Date(floor(timestamp#( DateTime, 'DD/MM/YYYY HH:MM:SS')),'DD-MM-YYYY') As _Key

madhuqliklondon
Creator II
Creator II
Author

This worked for me 

ID &'|'& Number &'|'& Date(Floor( Date(DateTime)),'DD/MM/YYYY') AS _Key

Thank you Kush for your support and time.