cancel
Showing results for 
Search instead for 
Did you mean: 
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
Super User
Super User

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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!