Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
i have two columns of date
a b
13/7/2017 13/7/2018
i want to show shelf life as b-a = 365
what should i do?
1:
LOAD * INLINE [
a, b
13/7/2017, 13/7/2018
];
NoConcatenate
2:
Load *, date#(b,'DD/MM/YYYY')-date#(a,'DD/MM/YYYY') as shelf Resident 1; DROP table 1;
24-06-2017 | 24-06-2018 | 30/12/1900 |
interval(date#(B,'DD-MM-YYYY')-date#(A,'DD-MM-YYYY'),'D')
i tried your solution but now its not showing me as 365 output in 3rd column.
provided solution must work. can you describe what are the steps you are trying? where are you trying?
post your script and chart expression
Regards,
Prashant Sangle
Remove the date format for the result column. 30/12/1900 is the date representation of the number 365.
yes it worked thanx