Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors