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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Lookup Value with a filter on another table

Hi together, 
I have to check if  in the table "data_Current" the email is matching with an email in the table "users" and it should only match when the User in the table "users" does have an model "IOS" or "Android" in table "devices".

jannisb_1-1635180116842.png

Table Current_Data

EmailImeiUsername
test.1@test.de1234test.1
test.2@test.de12345test2
test.2@test.de123456test2

test.3@test.de

nulltest3

test.10@test.de

1212test100

 

Table Devices

User-IDIMEISERIAL NumberModel
112345abcdeAndorid
222222abceAndroid
334333aaaaIOS
333456aaaaeDell
412345ertssdDell
5111111asdasIOS

 

Table Users:

USER-IDEMAILName
1test.1@test.deMeyer
2test.5@test.deLampe
3test.3@test.deAnton
4test.4@test.deMagda
5test.100@test.deMeyer

 

My suggestion would be to create a new column in the table current_data if the email[current_data] is in the table [users] and has a model ("Android" or "IOS") in Table [devices].

The solution should be:

EmailImeiUsernameNEW COLUMN
test.1@test.de1234test.1Yes
test.2@test.de12345test2No
test.2@test.de123456test2No

test.3@test.de

nulltest3Yes

test.10@test.de

1212test100Yes
3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, heres my solution.

1.Your three tables should have relationship.

vkalyjmsft_0-1635932089494.png

 

2.Create the new column like this.

vkalyjmsft_1-1635932089499.png

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

smpa01
Super User
Super User

@Anonymous  difficult to resolve without looking at the data but can you give this a try and let me know

 

 

Measure = calculate(MAXX(FILTER(current,current[Email]=
calculate(max(user[userEmail]),filter(devices,device[model]="IOS"||device[model]="android"))),current[Email]),userelationship(current<column>,user<column>,both)))

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

Hi, unfortunately this does not solve the problem. I rather imagine a new column like this statement.

Migrated = IF(ISBLANK(LOOKUPVALUE(devices[imei],devices[imei],'Data_Current'[IMEI])),"No","Yes")

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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