cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Usage of USERELATIONSHIP function

We use a report that makes a reference (via active table relationship) to a specific table. It is necessary to deactivate this relationship to properly calculate a value in a visual.  However, when I deactivate this relationship it causes MANY (near 100) other items to break.  I am able to apply formula fixes to these "broken" visuals by using the USERELATIONSHIP function. 

 

My question is "In place of changing formulas in many places, Is there an ANTI version (or usage) of USERELATIONSHIP that I only apply in one location to apply a fix to a single visual). Can I maintain the inplace table relationship and have the visual ignore it?

 

I've tried to create a table that includes the matching date values that are related and that does mitigate my issue.

 

Additionally, this project has patient health information and I wouldn't be able to share a version of the file.

3 REPLIES 3
AlexisOlson
Super User
Super User

Can you explain how deactivating the relationship makes the visual work properly, i.e., what changes in the filtering?

 

I'd guess you could write measures for the visual that behave similarly to severing the relationship.

Anonymous
Not applicable

Thanks for your replay, how do you write a measure that "severs"a relationship?

It's hard to say without knowing the context. Can you give an example of a measure you are using in a visual and how it behaves differently with and without the relationship?

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors