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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
olegkazanskyi
Helper II
Helper II

USERRELATIOSHIP removes row context filters

I have inactive relationships between tables I am trying to activate with a simple CALCULATE measure:

 

MODIFICATION_COUNT = CALCULATE(sum(USER[MODIFICATION_COUNT]),USERELATIONSHIP(INCIDENT[OPENED_BY_ID],USER[USER_ID])) 

 

 

Here is how relationships look (Many to One):

 RELATIONS.png

 

But the result doesn't look as expected

TABLE.PNG

 

Does anyone know what is wrong?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Your sum calculation is done on the dimension table ('User').  USERELATIONSHIP only works when invoked from the fact table ('INCIDENT').  It is ignored in your scenario.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Your sum calculation is done on the dimension table ('User').  USERELATIONSHIP only works when invoked from the fact table ('INCIDENT').  It is ignored in your scenario.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.