Forum Discussion

Grant_Byrnes's avatar
Grant_Byrnes
New Member
8 years ago
Solved

Using Userealationship in IF

I'm wondering how I could use UseRelationship in a "If" Statement.  Example: If ( columnName1 IsBlank, userelationship(<columnName2>,<columnName3>), userelationship (<columnName1>,<columnName3>)  
  • v-yulgu-msft's avatar
    8 years ago

    Hi Grant_Byrnes,

     

    From your description, you want to create a conditional relationship between two tables, right? This is not supported. The relationship is initilized in Relatiomships view, rather than being created via DAX formula. And only one active relationship can be established between two tables. Besides, USERELATIONSHIP function specifies the relationship to be used in a specific calculation as the one that exists between two columns. 

     

    Best regards,

    Yuliana Gu