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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors