Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I'm wondering how I could use UseRelationship in a "If" Statement.
Example:
If ( columnName1 IsBlank, userelationship(<columnName2>,<columnName3>), userelationship (<columnName1>,<columnName3>)
Solved! Go to Solution.
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
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 36 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 103 | |
| 66 | |
| 65 | |
| 56 |