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