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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
BartoszS
New Member

Lookup two conditions in another table and return TRUE or FALSE

Hi,

I have two tables structured like this:

Table 1

User IDUsernamePermissions
A1234User1Permission1
A1234User1Permission2
A2364User2Permission1

 

Table2

User IDUsername
A1234User1
A2364User2

 

I want to add column to Table2 that will return TRUE if the UserID and Permission1 exist for this User ID in Table1. False if they don't.

I have managed to use Excel function (IF and XLOOKUP) to get this information I need but because of the size of the data and formula complexity it takes days to run the functions (and they crash).

 

Is it possible to do it in Power BI DAX or in Power Query?

Thank you,

Bartosz

1 REPLY 1
amitchandak
Super User
Super User

@BartoszS ,

 

a new column in table 2

=

var _cnt = countx(filter(Table1, Table2[USerid] = Table1[UserID]  && not(isblank(Table1[Permission]))  ), Table1[UserID] )

return

if(isblank(_cnt), false() , true() )

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors