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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Robert14358
Resolver III
Resolver III

User Relationship not working in Service

Im not sure what is going on here

 

these measures are working in desktop but not the service, it is a composite model with direct query/mport and both measures use the "USERELATIONSHIP" function.

Robert14358_0-1728182055078.png

Robert14358_1-1728182093101.png

 

 

2 REPLIES 2
Robert14358
Resolver III
Resolver III

so it doesnt work in direct query reports?

tharunkumarRTK
Super User
Super User

@Robert14358 

Are you aware of all the limitations of using USERELATIONSHIP() function?

for example if your model has RLS implemented then USERELATIONSHIP() wont work, similarly there are few other limitations, you can read them here

https://dax.guide/userelationship/

In such scenarios consider using TREATS() function to create a virtual relationship 

https://dax.guide/treatas/

 

Need a Power BI Consultation? Hire me on Upwork

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

Helpful resources

Announcements
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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