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
powerbinoob457
Frequent Visitor

If a row out of many contains a value return value in another table

I've got a a bunch of users who are assigned corporate phones.

Some users ony have 1 phone while others have multiples.

The date is organized in two tables one containing the asset information and one containing user information as below

 

UserPhone Typeserial
user 1Iphone0
user 1Android1
user 2Iphone2
user 2Iphone3
user 3Iphone4
User 4Android5

and

Useremail address
user 1email
user 2email
user 3email
user 4email

User is unique in this table.

I need to create a calculated column in the second that that will identify all IOS users as such

UserPhone TypeUses IOS
user 1emailYes
user 2emailYes
user 3emailYes
user 4emailNo

 

Thanks

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

HI @powerbinoob457

 

You can use this Column in Table 2 assuming Tables are linked via User Column

 

Column =
IF (
    CONTAINS ( RELATEDTABLE ( Table1 ), Table1[Phone Type], "IPhone" ),
    "Yes",
    "No"
)

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

HI @powerbinoob457

 

You can use this Column in Table 2 assuming Tables are linked via User Column

 

Column =
IF (
    CONTAINS ( RELATEDTABLE ( Table1 ), Table1[Phone Type], "IPhone" ),
    "Yes",
    "No"
)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors