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
Dee
Helper III
Helper III

Buscar número con dígitos repetidos en una columna

Hola a todos

Estoy tratando de encontrar una manera de identificar números con dígitos repetidos en una columna

Eg:

122234556 - cumple con los criterios

123456 - no cumple con los criterios

112334556677899- cumple con los criterios

020003445566 - cumple con los criterios

01235679 - no cumple con los criterios

No puedo encontrar una manera de hacer esto, cualquier ayuda sobre cómo lograrlo será muy apreciada.

¡¡Tia!!

3 REPLIES 3
az38
Community Champion
Community Champion

@Dee

probar una columna como

Column = 
var _withinText = CONVERT('Table'[Column1], STRING)
RETURN
IF(
SEARCH("00", _withinText,, 0) > 0 || SEARCH("11", _withinText,, 0) > 0 || SEARCH("22", _withinText,, 0) > 0 || SEARCH("33", _withinText,, 0) > 0 || SEARCH("44", _withinText,, 0) > 0 || SEARCH("55", _withinText,, 0) > 0 || SEARCH("66", _withinText,, 0) > 0 || SEARCH("77", _withinText,, 0) > 0 || SEARCH("88", _withinText,, 0) > 0  || SEARCH("99", _withinText,, 0) > 0,
"meets the criteria",
"doesn't meet criteria")

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

wow @az38 muchas gracias mucho esto es más o menos lo que estaba buscando.

Supongamos que tal vez sólo una repetición por ejemplo 1223456 no es suficiente cómo y 122223456 es lo que tal vez quiero retratar cómo me sorteo de la fórmula.

ps// estoy aceptando la solución.

az38
Community Champion
Community Champion

@Dee

reemplazar todas las declaraciones SEARCH a declaraciones como

SEARCH("222", _withinText,, 0)

depende de cuántas repeticiones exactas se deben contar


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.