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
Anonymous
Not applicable

Función de texto de consulta M

Hola equipo,

No he obtenido el resultado en la siguiente función de la función M-Query.

• Table.AddColumn(Rule1, "Rule2", cada if(Text.Start([-"Temp (NTM)"] ,3) <> "DCL" o Text.Start([-"Temp (NTM)"],3) <> "DSA" o Text.Start([-"Temp (NTM)"] ,3) <> "DBC)"
luego "Colocado"
otro nulo)

La mirada de fecha seguirá siendo esta,

screen.PNG

KV's

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hola @Kalidass ,

Prueba esto:

= Table.AddColumn(#"Changed Type", "Custom", each if Text.StartsWith([#"Temp(NTM)"], "DCL") then "" else if Text.StartsWith([#"Temp(NTM)"], "DSA") then "" else if Text.StartsWith([#"Temp(NTM)"], "DBC") then "" else "PLACED")

test_M-Query Text Function.PNG

Saludos
Liang
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

6 REPLIES 6
V-lianl-msft
Community Support
Community Support

Hola @Kalidass ,

Prueba esto:

= Table.AddColumn(#"Changed Type", "Custom", each if Text.StartsWith([#"Temp(NTM)"], "DCL") then "" else if Text.StartsWith([#"Temp(NTM)"], "DSA") then "" else if Text.StartsWith([#"Temp(NTM)"], "DBC") then "" else "PLACED")

test_M-Query Text Function.PNG

Saludos
Liang
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

amitchandak
Super User
Super User

@Kalidass, lo que debería suceder, entonces falta

Table.AddColumn(Rule1, "Rule2", cada if(Text.Start([-"Temp (NTM)"] ,3) <> "DCL" o Text.Start([-"Temp (NTM)"],3) <> "DSA" o Text.Start([-"Temp (NTM)"] ,3) <> "DBC" y luego <> else >

otra cosa es opcional

Anonymous
Not applicable

Hola @amitchandak ,

He reemplazado mi puesto.

Gracias

KV's

@Kalidass, parecen bien. ¿Puede compartir datos de ejemplo y salida de ejemplo en formato de tabla? O una muestra de pbix después de eliminar datos confidenciales.

Anonymous
Not applicable

Hola @amitchandak ,

No puedo pegar mis datos sin procesar, así que compartí mi publicación en la captura de pantalla.

screen.PNG

Por favor, ayúdame.

Gracias

KV's

@Kalidass, deberían serlo y

Table.AddColumn(Rule1, "Rule2", cada if(Text.Start([-"Temp (NTM)"] ,3) <> "DCL" y Text.Start([-"Temp (NTM)"],3) <> "DSA" y Text.Start([-"Temp (NTM)"] ,3) <> "DBC))
luego "Colocado"
otro nulo)

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.