Forum Discussion
Syndicate_Admin
Administrator
3 years agoFormato de fecha
Hola equipo, estoy trabajando con el siguiente conjunto de datos y quiero agregar una columna con los resultados en negrita según la fecha programada. ¿Hay alguien que sepa cómo hacer esto? ...
Syndicate_Admin
Administrator
3 years ago
Colour =
VAR __CurrentMonthReporting =
DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 )
VAR __NextMonthReporting =
EOMONTH ( DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ), 0 ) + 1
VAR __2MonthsReporting =
EOMONTH ( DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), 1 ), 1 ) + 1
RETURN
IF (
[Scheduled Date] < __CurrentMonthReporting,
"Backlog",
IF (
AND (
[Scheduled Date] >= __CurrentMonthReporting,
[Scheduled Date] < __NextMonthReporting
),
"Reporting Month",
IF (
AND (
[Scheduled Date] >= __NextMonthReporting,
[Scheduled Date] < __2MonthsReporting
),
"Next Month",
"Upcoming"
)
)
)
El crédito va a las preguntas previamente respondidas (Encontrado googleando). Combiné las vistas de informes actual/siguiente/2 meses declarándolas como variables y luego utilicé instrucciones if anidadas.