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

Comprobar valores duplicados

Hola, chicos

Tengo una tabla llamada "flancamento" y me gustaría encontrar filas duplicadas.

Pensé en una solución que devolvería valores duplicados en una nueva columna.

Screenshot (148).png

Entonces estoy creando una columna calculada y estoy usando la siguiente función, pero tal vez necesito agregar más parámetros:

Duplicados: IF(
COUNTROWS(
FILTER(fLancamento,fLancamento[Liberación]-
ANTERIOR(fLaunch])))>1,1,BLANK()

)

¿Cómo podría lograr este resultado?

Gracias

Karina

4 REPLIES 4
v-yiruan-msft
Community Support
Community Support

Hola @karinafreitass ,

Puede lograrlo mediante Power Query o crear una columna calculada para lograrlo, busque todos los detalles en los siguientes blogs.

Identificar duplicados mediante Power Query

Identificar duplicados y mostrar registros

Saludos
Rena
Equipo de apoyo comunitario _ Rena Ruan
Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más.

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@karinafreitass, Tu fórmula parece estar bien. Espero que esté creando una nueva columna.

Usted puede tener nueva columna como

if( countx(filter(fLancamento,fLancamento[Release] -EARLIER(fLaunch])), fLancamento[Release]) >1 , 1, blank())

Nueva medida como

if( countx(filter(allselected(fLancamento),fLancamento[Release] ?EARLIER(fLaunch])), fLancamento[Release]) >1 , 1, blank())

Proporcione sus comentarios y consejos para nuevos videos
Tutorial Series Dax Vs SQL Direct Query PBI Consejos
Apreciamos tus Felicitaciones.

CNENFRNL
Community Champion
Community Champion

Hola, @karinafreitass , es posible que desee probar esta medida en una columna calculada

RESULT = IF ( CALCULATE ( COUNTROWS ( flancamento ), ALL ( flancamento[Index] ) ) > 1, "Duplicated" )

flancamento[Índice] es la primera columna del conjunto de datos con los números cardinales 1, 2, 3 ...

Screenshot 2020-10-19 022817.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

@CNENFRNL

@amitchandak 

Thanks for help.

I've identified a problem. In the visual (table) I identified that the power Bi is generating duplicity as 1 record only and is making the sum of the values. So there's not going to be duplicate values, and that's not cool. 

I need to identify if there are duplicate records in the entire row

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.