wsaico
1
Hola pido su ayuda con lo siguiente:
Tengo una columna virtual llamada [ESTATUS] lo cual tiene estos condiciones
if([FECHA VENCIMIENTO]>today()+14,“VIGENTE”,
if([FECHA VENCIMIENTO]>today()+7,“HACER PEDIDO”,
IF(today()-0<[FECHA VENCIMIENTO],“ES NECESARIO RENOVAR!”,
if([FECHA VENCIMIENTO]= today(),“ULTIMO DIA”,
if([FECHA VENCIMIENTO]<today(),“VENCIDO”,“ULTIMOS DIAS”)))))
Deseo mostrar solo dos condiciones en el SLICE entre “VENCIDO” y “HACER PEDIDO”
como seria la formula?
muchas gracias por su apoyo.
Steve
2
Your expression with some reformatting:
if(
([FECHA VENCIMIENTO] > (today() + 14)),
“VIGENTE”,
if(
([FECHA VENCIMIENTO] > (today() + 7)),
“HACER PEDIDO”,
IF(
((today() - 0) < [FECHA VENCIMIENTO]),
“ES NECESARIO RENOVAR!”,
if(
([FECHA VENCIMIENTO] = today()),
“ULTIMO DIA”,
if(
([FECHA VENCIMIENTO] < today()),
“VENCIDO”,
“ULTIMOS DIAS”
)
)
)
)
)
Rewritten with IFS() rather than IF():
if(
([FECHA VENCIMIENTO] > (today() + 14)),
“VIGENTE”,
([FECHA VENCIMIENTO] > (today() + 7)),
“HACER PEDIDO”,
((today() - 0) < [FECHA VENCIMIENTO]),
“ES NECESARIO RENOVAR!”,
([FECHA VENCIMIENTO] = today()),
“ULTIMO DIA”,
([FECHA VENCIMIENTO] < today()),
“VENCIDO”,
true,
“ULTIMOS DIAS”
)
wsaico:
I want to show only two conditions in the SLICE between “EXPIRED” and “MAKE ORDER”
in([ESTATUS], {"ES NECESARIO RENOVAR!", "ULTIMO DIA"})
See also:
3 Likes
wsaico
3
Steve:
auto> if(> ([FECHA VENCIMIENTO] > (today() + 14)),> “VIGENTE”,> if(> ([FECHA VENCIMIENTO] > (today() + 7)),> “HACER PEDIDO”,> IF(> ((today() - 0) < [FECHA VENCIMIENTO]),> “ES NECESARIO RENOVAR!”,> if(> ([FECHA VENCIMIENTO] = today()),> “ULTIMO DIA”,> if(> ([FECHA VENCIMIENTO] < today()),> “VENCIDO”,> “ULTIMOS DIAS”> )> )> )> )> )> >
Thank you very much for your help!
1 Like
wsaico
4
Excuse me for adding another question, it is possible to generate a report from this SLICE in this case only from
in([ESTATUS], {“ES NECESARIO RENOVAR!”, “ULTIMO DIA”})
2 Likes
wsaico
6
I already did it, thank you very much!
1 Like