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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Dax Error

alanpjames_0-1654082699924.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
tamerj1
Super User
Super User

@Anonymous 
Please try

 

Ambassador =
IF (
    ISEMPTY (
        CALCULATETABLE (
            VALUES ( Ambassador[Ambassador Email] ),
            USERELATIONSHIP ( Ambassador[Ambassador Email], 'T1 Data Base'[User Email] )
        )
    ),
    "No",
    "Yes"
)

 

View solution in original post

13 REPLIES 13
tamerj1
Super User
Super User

 

 

 

Anonymous
Not applicable

Sorry, for which question you have answered this?

tamerj1
Super User
Super User

@Anonymous 
Please try

 

Ambassador =
IF (
    ISEMPTY (
        CALCULATETABLE (
            VALUES ( Ambassador[Ambassador Email] ),
            USERELATIONSHIP ( Ambassador[Ambassador Email], 'T1 Data Base'[User Email] )
        )
    ),
    "No",
    "Yes"
)

 

Anonymous
Not applicable

Anonymous
Not applicable

Hai @tamerj1  Yes it's working , can you explain why you used isblank here

@Anonymous 
I changed my reply to ISEMPTY for more simplicity. 
You have one to many relationship between the two tables. If you want to pul values from the many side to the one side it won't be a single value for each row. Rather it would be multiple values (a table). If now values are return then this table is EMPTY or the number of its rows ISBLANK

Anonymous
Not applicable

Hai @tamerj1, am accepting this solution, and can you please help me to achieve this requirement too 
https://community.powerbi.com/t5/Desktop/Converting-static-to-Dynamic-Measure/m-p/2550780

tamerj1
Super User
Super User

Hi 
Would you please share ascreeshot of your data model with th erlationships?

Anonymous
Not applicable

Sure @tamerj1 

alanpjames_0-1654084144622.png

This is the relation with these two tables

@Anonymous 
Are you creating a column (calculated column) or a measure? If you are creating a calculated column then please advise in which table?

Anonymous
Not applicable

Hai @tamerj1 I am creating a calculated column in T1 Database table

Anonymous
Not applicable

Hello You missed a column in Relationship formula.

Store the value of the relationship in a variable and compare it after

Anonymous
Not applicable

No, I didn't miss anything 

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.