Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
afqq
New Member

Extraer solo fecha de una columna calculada con fecha y hora

Buen día a todos. 

 

Tengo una columna calculada "Fecha AJUSTE = appointment[Fecha de inicio]-6/24" la cual me arroja un valor 23/05/2023 10:52:00 

Sin embargo al intentar generar un grafico de barras y colocar en el eje X el valor Fecha AJUSTE que es el calculado, elabora una columna por cada registro de hora dentro del día:
afqq_0-1684365259832.png

 

 
¿como puedo solo ver la compilación de fecha, excluyendo la hora
1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @afqq ,

 

You can create another calculated column [Fecha AJUSTE2] and use it as the x-axis.

Fecha AJUSTE2 = FORMAT('Table'[Fecha AJUSTE],"yyyy-mm-dd")

Or you can select the calculated column [Fecha AJUSTE] and go to [column tools] to change the format of the calculated column to [short date] or change the data type to [date] and then place it on the x-axis.

vtangjiemsft_0-1684461629563.pngvtangjiemsft_1-1684461664627.png

Please refer to the following documents for more information.

FORMAT function (DAX) - DAX | Microsoft Learn

Use custom format strings in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

 

View solution in original post

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @afqq ,

 

You can create another calculated column [Fecha AJUSTE2] and use it as the x-axis.

Fecha AJUSTE2 = FORMAT('Table'[Fecha AJUSTE],"yyyy-mm-dd")

Or you can select the calculated column [Fecha AJUSTE] and go to [column tools] to change the format of the calculated column to [short date] or change the data type to [date] and then place it on the x-axis.

vtangjiemsft_0-1684461629563.pngvtangjiemsft_1-1684461664627.png

Please refer to the following documents for more information.

FORMAT function (DAX) - DAX | Microsoft Learn

Use custom format strings in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.