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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Orstenpowers
Post Patron
Post Patron

Fecha de texto en fecha real???

Buenos días a todos,

La columna de fecha resaltada a continuación tiene el formato de texto. Al intentar cambiar el formato a la fecha, recibí el mensaje de error de que esto no se puede hacer automáticamente!?

¿Qué tengo que hacer? Esperemos que alguien por ahí que pueda ayudarme!? Esperando sus ideas que sigo

Screenshot_016.JPG

Supongo que es fácil, pero no lo entiendo.

6 REPLIES 6

Hola @Orstenpowers ,

También preferiría la consulta de energía lejos de @Ashish_Mathur .

Si hay errores de valor en la columna, se pueden identificar fácilmente.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Ashish_Mathur
Super User
Super User

Hola

En el Editor de consultas, seleccionar la fecha funciona muy bien para mí. Vea estas capturas de pantalla

Untitled.pngUntitled1.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-frfei-msft
Community Support
Community Support

Hola @Orstenpowers ,

Aquí vamos:

year = var year = RIGHT('Table'[Order Date],4)
var month =MID('Table'[Order Date],4,2)
var day =LEFT('Table'[Order Date],2)
return
date(year,month,day)

Capture.PNG

Pbix como adjunto.

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
amitchandak
Super User
Super User

Crear una nueva columna de fecha como

Nueva fecha de pedido: mid(Table[Order Date],4,2) &"/"& left(Table[Order Date],2) & "/" & right(Table[Order Date],4)

@amitchandak ¡Gracias!
Sin embargo, no funcionó. El resultado fue una columna con formato de texto y cuando intenté cambiar esto al formato "Fecha", toda la columna declaró "error"!?

@Orstenpowers

Compruebe los tres primeros valores que dan los valores correctos, si la fecha de recurso compartido de notas para la que no está haciendo. En caso afirmativo, entonces intente el cuarto

año a la derecha (Tabla[Fecha de pedido],4)
mes a mitad (Tabla[Fecha de pedido],4,2)
día a la izquierda (Tabla[Fecha de pedido],2)
nueva fecha ádate(right(Table[Order Date],4),mid(Table[Order Date],4,2) ,left(Table[Order Date],2))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.