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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
AlanP514
Post Patron
Post Patron

Dax error

AlanP514_0-1654082921127.png

 

Hai All, please help me to solve this error, 
I am trying to create a flag, but these two tables are in an inactive relationship,

The logic is if the ambassador's name is present in the t1 table then yes otherwise no  but these two tables are in inactive mode 
and I am getting this error so how to solve this error please help me 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @AlanP514 ,

I created some data:

Ambassador:

vyangliumsft_0-1654567968072.png

T1:

vyangliumsft_1-1654567968072.png

Here are the steps you can follow:

1. Create calculated column.

Column =
var _column=SELECTCOLUMNS('T1',"1",'T1'[User Name])
return
IF(
    'ambassador'[Name] in _column ,"Yes","No")

2. Result:

vyangliumsft_2-1654567968072.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @AlanP514 ,

I created some data:

Ambassador:

vyangliumsft_0-1654567968072.png

T1:

vyangliumsft_1-1654567968072.png

Here are the steps you can follow:

1. Create calculated column.

Column =
var _column=SELECTCOLUMNS('T1',"1",'T1'[User Name])
return
IF(
    'ambassador'[Name] in _column ,"Yes","No")

2. Result:

vyangliumsft_2-1654567968072.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Syk
Resident Rockstar
Resident Rockstar

The USERELATIONSHIP function needs 2 columns so it should look like...

USERELATIONSHIP('Ambassador'[Ambassador Email],'T1 Data Base'[User Email])

 

 

Although I don't believe this will get you what you're looking for. Are you trying to create a calculated column with this?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.