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
Epinephrin
Regular Visitor

¿Cómo puedo contar los valores sin VLOOKUP?

Hola a todos,

Me gustaría comprobar si un valor en la columna A ya tiene algún valor en la columna B (no importa cuál).

Normalmente resolvería el problema con VLOOKUP:

IF(VLOOKUP(A1;$A$1:$B$12;2; FALSO)>0; "Sí"; "No")

¿Cómo puedo habilitar esto en Power BI?

Gracias de antemano.

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hola @Epinephrin ,

¿Algo como abajo?

Column = IF('Table'[Column1] in VALUES('Table'[Column2]),"YES","NO")

1.PNG

Saludos

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

Hola @Epinephrin ,

¿Algo como abajo?

Column = IF('Table'[Column1] in VALUES('Table'[Column2]),"YES","NO")

1.PNG

Saludos

Jay

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

@Epinephrin ,

Pruebe una nueva columna como

Count á countx(filter(Table,table[colA] ?earlier(Table[ColB])),Table[ColB])

O

Flag á if(isblank(countx(filter(Table,table[colA] ?earlier(Table[ColB])),Table[ColB])) ?"No", "Yes")

Oye

Gracias. Pero los resultados de su primer formulario están vacíos y el segundo no funciona porque:

Las comparaciones DAX no admiten comparaciones entre True/False y Text type(?).

Hola aEpinefrina

¿Tiene algunas filas de datos de ejemplo para ir con esto?

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.