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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
ezequiel
Employee
Employee

Replace values on relashionship

Hi,

 

I created a relation between 2 tables. Table A contains 2 fields: User Name / Request ID. Table B contains 1 field: User Name (distinct)

 

The relation works fine and I'm getting Table C with 3 columns: User Name (from Table A) / Request ID / User Name (from Table B).

 

Is there any way I can change the value of the User Name on Table 3 to YES/NO meaning YES = when the User Name exists and NO when User Name is blank?

 

Thanks,

 

Ezequiel

1 ACCEPTED SOLUTION
KGrice
Memorable Member
Memorable Member

What are you doing to create Table C? With what I'm picturing, you have a relationship between Tables A and B on the UserName. You can then add a new column to Table A called something like ExistsInB, which could show you your Yes/No values. As a True/False, add a new column:

 

ExistsInB = NOT(ISBLANK(RELATED(Table2[Dealer Name])))

 

To convert that to Yes/No, wrap it in an IF:

 

ExistsInB = IF(NOT(ISBLANK(RELATED(Table2[Dealer Name]))), "YES", "NO")

View solution in original post

1 REPLY 1
KGrice
Memorable Member
Memorable Member

What are you doing to create Table C? With what I'm picturing, you have a relationship between Tables A and B on the UserName. You can then add a new column to Table A called something like ExistsInB, which could show you your Yes/No values. As a True/False, add a new column:

 

ExistsInB = NOT(ISBLANK(RELATED(Table2[Dealer Name])))

 

To convert that to Yes/No, wrap it in an IF:

 

ExistsInB = IF(NOT(ISBLANK(RELATED(Table2[Dealer Name]))), "YES", "NO")

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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