Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Transitive Relationships

$
0
0

I'll try to make this coherent:

 

I have the following relationships created. I need to write measures to calculate the quantity of Notes entered by the following roles:

1. CustServiceRepID

2. PMMgrID

3. TechMgrID

 

The Notes Table has a column "CreatedByUserID" which is linked to "JMWebUsersSystemALL(UserID)"

 

I created relationships attempting to connect UserID to the role IDs listed above, but my measures all produce the same quantitities.

 

Capture1.JPGCapture2.JPG

 

PrgMgr Notes = CALCULATE(COUNTA('dpmgr tblContactNotes'[Note]), 'dpmgr tblContactNotes'[IsSystem] = 0, 'dpmgr tblContactNotes'[IsAuto]= 0, USERELATIONSHIP('dpmgr tblContacts'[PMMgrID], 'dpmgr vwJMWebUsersSystemALL'[UserID]))

 

TSM Notes = CALCULATE(COUNTA('dpmgr tblContactNotes'[Note]), 'dpmgr tblContactNotes'[IsSystem] = 0, 'dpmgr tblContactNotes'[IsAuto]= 0, USERELATIONSHIP('dpmgr tblContacts'[TechMgrID], 'dpmgr vwJMWebUsersSystemALL'[UserID]))

 

COL Notes = CALCULATE(COUNTA('dpmgr tblContactNotes'[Note]), 'dpmgr tblContactNotes'[IsSystem] = 0, 'dpmgr tblContactNotes'[IsAuto]= 0, USERELATIONSHIP('dpmgr tblContacts'[CustServiceRepID], 'dpmgr vwJMWebUsersSystemALL'[UserID]))

 

But they all spit out the same values

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>