Min y max DATE

Hola a todos,

Tengo una consulta, tengo varias fechas con horas de una sesión de un asesor, requiero sacar la hora de inicio y la hora fin, tengo el siguiente ejemplo para esta persona la hora inicio y hora fin es MANUELA SILVA RESTREPO 08:02:11 12:35:16, las fechas vienen de la siguente manera 2024-05-06 08:02:11.000 2024-05-06 12:35:16.000, pero cuando uso el min y el max en Quicksigth me sale un dato totalmente distinto


intente sacar el dato desde la base de datos con SQL, la cual me arroja un dato correcto
image
pero cuando subo la información en el DS , todos los datos se me suben de la siguiente manera
image
No se porque se cargan así, me podrían ayudar de que manera podría sacar el inicio y el fin

1 Like

Hello @Santi98, I see what the issue is. Basically, when you are displaying only a timestamp without the date, QuickSight converts that into a string. Something about that conversion process is messing up your timestamps when you import them into the dataset. To work around this, I would format your timestamp and convert to a string either from the table/view in the database or in custom SQL on ingestion into QuickSight. That way, you should avoid the issue you are seeing.

Otherwise, you will want to include the full date and timestamp in the field if you want it to remain as a date in QuickSight. Let me know if this helps!

Hola @DylanM, así es, tuve que generar el proceso desde SQL, porque QS estaba tomando la marca de tiempo de otra manera.

Gracias por la ayuda.

1 Like

Hello @Santi98, I am glad that resolved the issue. Thank you for following up!