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
yodha
Helper IV
Helper IV

DAX a dividir texto usando delimeter.

Necesito ayuda para dividir este texto basado en el delimeter "Comma"

¿Alguien puede ayudarme con "DAX"?

Gracias de antemano

7 REPLIES 7
Mariusz
Community Champion
Community Champion

Hola @yodha

Con Power Query es tan simple como seleccionar la columna de cadena, siga lo siguiente.

Mariusz_0-1594209103020.png

y expanda Tipo,

Por favor, consulte el adjunto para ref.

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

Mariusz
Community Champion
Community Champion

Hola @yodha

¿No puedes hacerlo en Power Quer?

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin

@Mariusz : no, necesito usar DAX, el DAX anterior se ve bien, pero me está dando error porque pocas filas en mi tabla no tienen "Tipo", gracias.

az38
Community Champion
Community Champion

Hola @yodha

Tratar

Column = 
var _start = SEARCH("""Type", [Column1])
var _finish = SEARCH(",", [Column1], _start)
RETURN
MID([Column1], _start, _finish - _start)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 : Muchas gracias por la respuesta, pero esto me está dando error porque pocas filas no contienen "Tipo" en mi tabla, ¿puede decirme cómo modificar este DAX ?

az38
Community Champion
Community Champion

@yodha

Tratar

Columna ?

var _start - SEARCH("""Type", [Column1],,0)

var _finish - SEARCH(",", [Column1], _start)

devolución

IF(_start > 0, MID([Column1], _start, _finish - _start), BLANK() )


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

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.