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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Epinephrin
Regular Visitor

How can I count the values without VLOOKUP?

Hello everyone,

 

I would like to check if a value in column A already has any value in column B (no matter which one).

Normally I would solve the problem with VLOOKUP:

 

=IF(VLOOKUP(A1;$A$1:$B$12;2;FALSE)>0; "Yes"; "No")

 

How can I enable this in Power BI?

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Epinephrin ,

 

Something like below?

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

1.PNG

 

Best Regards,

Jay

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Epinephrin ,

 

Something like below?

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

1.PNG

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Epinephrin ,

Try new column like

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

or

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey,

 

thank you. But the results from your first formular are empty and the second doesn't work because: 

DAX comparisons do not support comparisons between True/False and Text type(?).

Hi @Epinephrin

 

Have you got a few rows of example data to go with this?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.