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
eduvale011
Frequent Visitor

Comparar duplicados con otra columna

Hola a todos, 

 

Soy nuevo en power BI y me gustaria puedan ayudarme en esta consulta. Tengo la siguiente tabla:

 

eduvale011_0-1679525096168.png

a la cual necesito hacer la siguiente validacion:

 

- identificar las filas con dato duplicado en el campo "Dato 2"

- verificar si de estas filas identificadas, los datos del campo "Dato 1" son iguales

- si son iguales, colocar "OK" en el campo "Resultado"

- si hay diferencias, colocar "falla" en el campo "Resultado"

 

el resultado seria algo asi:

eduvale011_1-1679525194003.png

 

gracias por su ayuda!

 

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Basándome en su descripción, creé datos para reproducir su escenario. El archivo pbix se adjunta al final.
https://1drv.ms/u/s!AiUZ0Ws7G26RhlkvVbyABYL0RfUO?e=zoYBzR
Screen Capture #731.png

View solution in original post

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

Intenta escribir así.
PERO, por supuesto, será mejor si primero elimina los espacios en la consulta de energía.
Screen Capture #737.png

eduvale011
Frequent Visitor

Ahmedx, una consulta adicional, en mi tabla, en los campos dato 1 y dato 2, pueden haber vacios. he notado que igual los considera como "falla", hay forma de que no los considere y en su lugar, tambien indique "ok"?

 

gracias!! me estas ayudando mucho.

Syndicate_Admin
Administrator
Administrator


Si esta publicación ayuda, entonces considere aceptarla como la solución para ayudar a otros miembros a encontrarla más rápido y dar un gran pulgar hacia arriba.

eduvale011
Frequent Visitor

Ahmedx, muchas gracias! funcionó perfecto...! 

Syndicate_Admin
Administrator
Administrator

Basándome en su descripción, creé datos para reproducir su escenario. El archivo pbix se adjunta al final.
https://1drv.ms/u/s!AiUZ0Ws7G26RhlkvVbyABYL0RfUO?e=zoYBzR
Screen Capture #731.png

Helpful resources

Announcements
March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

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.

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