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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.