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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sumar minutos

Hola, os presento mi duda a ver si alguien me puede ayudar.

Tengo en excel lo siguiente:

Intervalo

01/01/2014 01:00:00

01/01/2014 01:15:00

01/01/2014 01:30:00

01/01/2014 01:45:00

01/01/2014 02:00:00

01/01/2014 01:15:00

01/01/2014 01:30:00

.............

Lo que necesito es sumarle 15 minutos a todos esos intervalo, para después utilizarlos como dimensión.

Un saludo y gracias.

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

This is the script you need

AAA:

LOAD * Inline [

Tempo

01/01/2014 01:00:00

01/01/2014 01:15:00

01/01/2014 01:30:00

01/01/2014 01:45:00

01/01/2014 02:00:00

01/01/2014 01:15:00

01/01/2014 01:30:00

];

BBB:

NoConcatenate

LOAD

  Tempo,

  Date(Num(Tempo) + Num('00:15:00'),'DD/MM/YYYY hh:mm:ss') as newTempo

Resident AAA;

DROP Table AAA;

etendero
Partner - Creator
Partner - Creator

Hola Juan Vicente,

Prueba utilizando la siguiente expresión:

TimeStamp(Date(Intervalo) & ' ' & MakeTime(Hour(Intervalo), Minute(Intervalo) + 15))

Un saludo y espero haberte ayudado.