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 August 31st. Request your voucher.

Reply
tinleyjj
New Member

Return Text when RELATED Function has not match in related table

Hi, 

 

When adding a column to a calculated table from another table using RELATED(),  I would like to return "Text" where there is no related ID in the second table. I can accomplish this through adding the related column and then adding a second column using ISBLANK(), but I wanted to be able to do this by only adding one column. *If this were a LOOKUP(), I could return the alternate text). 

 

Is there a way to combine or nest the following?

 

1) Next_Enroll_Outcome a = Related('4_Enrollment'[Enroll_Inst_Outcome])

 

2) Next_Enroll_Outcome = If(ISBLANK('2_Enrollment'[Next_Enroll_Outcome a]),"3_StopOut",'2_Enrollment'[Next_Enroll_Outcome a])

 

Thank you. 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@tinleyjj 

I think this is what you are looking for.

Next_Enroll_Outcome = COALESCE ( Related('4_Enrollment'[Enroll_Inst_Outcome]), "3_StopOut" )

View solution in original post

2 REPLIES 2
tinleyjj
New Member

Thanks! Made building this longitudinal tracking project much easier. 

jdbuchanan71
Super User
Super User

@tinleyjj 

I think this is what you are looking for.

Next_Enroll_Outcome = COALESCE ( Related('4_Enrollment'[Enroll_Inst_Outcome]), "3_StopOut" )

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.