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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.