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

Announcements
Congratulations to the new Qlik Luminary and Partner Ambassador class! Meet them here
cancel
Showing results for 
Search instead for 
Did you mean: 
ChiquiLeón
Contributor II
Contributor II

De acuerdo aun Campo Fecha se cree (el día quince del mes anterior)

Estimados 

Muy buen día, por favor su ayuda necesito crear una fecha dependiendo de otra fecha, ejemplo:

Fecha  (n fechas)                  Nueva Fecha

26/01/2020                              15/12/2019

03/03/2020                              15/02/2020

15/08/2020                              15/07/2020

Y ese nuevo campo "NUEVA FECHA" debe estar en formato fecha por luego debo restar con otro campo fecha para saber si sigue vigente o no.

 

1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

Hola, ¿Como debe crearse la fecha nueva? ¿Sería siempre para el día 15 del mes anterior?

MakeDate(Year(AddMonths(Fecha,-1)), Month(AddMonths(Fecha,-1)), 15) as NuevaFecha

View solution in original post

1 Reply
rubenmarin
MVP
MVP

Hola, ¿Como debe crearse la fecha nueva? ¿Sería siempre para el día 15 del mes anterior?

MakeDate(Year(AddMonths(Fecha,-1)), Month(AddMonths(Fecha,-1)), 15) as NuevaFecha