cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors