Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
load
alt(date#(Mydate,'23-10-2018'),date#(Mydate,'20/11/2018'), date#(Mydate,'15-12-2018'),'DD/MM/YYYY') as Mydate;
date:
LOAD * Inline [
Mydate,sales
23-10-2018,100
20/11/2018,200
15-12-2018,300
];
I am getting wrong values
You have to pass the date formats in date#() instead of the values like:
load
Date(
alt(date#(Mydate,'DD-MM-YYYY'),date#(Mydate,'DD/MM/YYYY'))
,'DD/MM/YYYY') as Mydate
Hi,
Use below expression :
Date(alt(date#(Mydate,'DD-MM-YYYY'),date#(Mydate,'DD/MM/YYYY'), date#(Mydate,'DD-MM-YYYY')),'DD/MM/YYYY') as Mydate;
Thanks,
Ashutosh
load
date(alt(date#(Mydate,'23-10-2018'),date#(Mydate,'20/11/2018'), date#(Mydate,'15-12-2018'),'DD/MM/YYYY')) as Mydate;
date:
LOAD * Inline [
Mydate,sales
23-10-2018,100
20/11/2018,200
15-12-2018,300
];
but still getting wrong values
Hi,
You are using manual dates in Date#() function.
You need to use predefined column (Created in Inline table) in Date#() function.
Use expression of Tresesco or mine to get that correct.
You have to pass the date formats in date#() instead of the values like:
load
Date(
alt(date#(Mydate,'DD-MM-YYYY'),date#(Mydate,'DD/MM/YYYY'))
,'DD/MM/YYYY') as Mydate
Hi,
Use below expression :
Date(alt(date#(Mydate,'DD-MM-YYYY'),date#(Mydate,'DD/MM/YYYY'), date#(Mydate,'DD-MM-YYYY')),'DD/MM/YYYY') as Mydate;
Thanks,
Ashutosh
load
date(alt(date#(Mydate,'23-10-2018'),date#(Mydate,'20/11/2018'), date#(Mydate,'15-12-2018'),'DD/MM/YYYY')) as Mydate;
date:
LOAD * Inline [
Mydate,sales
23-10-2018,100
20/11/2018,200
15-12-2018,300
];
still getting wrong values
load
date(alt(date#(Mydate,'23-10-2018'),date#(Mydate,'20/11/2018'), date#(Mydate,'15-12-2018'),'DD/MM/YYYY')) as Mydate;
date:
LOAD * Inline [
Mydate,sales
23-10-2018,100
20/11/2018,200
15-12-2018,300
];
but still getting wrong values
@nagasekhar , you are still using wrong expression. 😋 Copy-paste the expression I posted and check.
Hi,
You are using manual dates in Date#() function.
You need to use predefined column (Created in Inline table) in Date#() function.
Use expression of Tresesco or mine to get that correct.