Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi community, I have this line to subtract dates, but the result cell shows empty. No error shows when I run the script. What am I doing wrong? I also have other conditions "=" equal to something and does not work.
Table result:
,if([azTienePending]=1
, [azFinishResolved]-[azInicioAlerStart]
, [StatusHistory.Pending.Time]-[azInicioAlerStart])
as [azTTRMA]
//Attached qvd, qvf and excel. The script is in the loadeditor "seccion 7"
//https://drive.google.com/drive/folders/1wkqCzePm-itLFrU-6-Dx0OeL-UrhcMHy?usp=sharing
The dates are probably not being recognised by QS, so they are loaded as strings. Give QS a little help in the load script using:
LOAD ... Date#(azFinishResolved, 'dd/MM/yyyy hh:mm:ss') as azFinishResolved, Date#(azInicioAlerStart, 'dd/MM/yyyy hh:mm:ss') as azInicioAlerStart,...
Now you should be able to perform date arithmetic on these fields.