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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.