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
Syndicate_Admin
Administrator
Administrator

Agregar columna personalizada para la fecha con if

Hola

Quiero agregar una columna personalizada en lugar de hacerlo en dax:

¿Cómo puedo escribir esto en el editor de consultas?

Fecha = FECHA(SI([Mes #]>=9,[FY]-1,[FY]),[Mes #],1)
¡Gracias!
1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Hola

1- Puede agregar otra columna basada en su condición:

if [Month] >= 9 then [FY]-1 else [FY]

MahyarTF_0-1670390701880.png

2-Insertar nueva columna:

Text.Combine({Text.From([Date], "en-AU"), Text.From([Month], "en-AU"), Text.From("01")}, "-")

MahyarTF_1-1670390770704.png

3- Cambiar el formato de columna a Fecha:

MahyarTF_2-1670390824097.png

Aprecia tus Kudos y márcalo como una solución si te ayuda

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.