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
HenryJS
Post Prodigy
Post Prodigy

Buscar campos que contengan 2x ","

Hola a todos

¿Es posible crear una nueva columna que utiliza FIND para devolver Sí cuando el campo [Disciplinas] contiene dos comas ","

Capture55.JPG

1 ACCEPTED SOLUTION

se puede probar esto

countofcommas ?len(TextTable[Text])-len(SUBSTITUTE(TextTable[Text],",",""))
simplemente reemplazar con su columna




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
vanessafvg
Super User
Super User

¿puedo preguntar qué quieres hacer si tiene 2 comas? podría ser más fácil hacer esto en la consulta de energía, dependiendo de lo que intente hacer.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




@vanessafvg si el campo contiene dos comas quiero una nueva columna que indique "Sí"

Si no contiene dos comas, entonces en blanco

Gracias

@HenryJS
Para cualquier caso similar, puede utilizar Len() - Len(substitute().

Detalle:https://contexturesblog.com/archives/2018/01/11/count-items-in-a-cell-with-substitute/

Encontrará el número de caracteres sin comas utilizando Len(substitute() (reemplazar "," por blank""). A continuación, utilizó Len() Len(substitute(). Averiguar el número de comas que se ha reemplazado por en blanco"".

columna á 
var countcommas á LEN('Table'[Column1])-LEN(SUBSTITUTE('Table'[Column1],",",""))
Return IF(countcommas>-2,"Yes",BLANK())

Paul Zheng
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

se puede probar esto

countofcommas ?len(TextTable[Text])-len(SUBSTITUTE(TextTable[Text],",",""))
simplemente reemplazar con su columna




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.