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

USERELATIONSHIP Function

$
0
0

I have two tables, one lists "UserID" and other lists "TechMgrID," "CustServiceRepID," and "PMMgrID"

 

I have a third table that lists "CreatedByUserID," which I also created a relationship to "UserID"

 

I need to calculate how many "Notes" were created by the CustServiceRep, the TechMgr, and the PMMgr.

Capture.JPG

 I tried

 

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

 

and changed the formula accordingly, but I don't think I'm getting the result I need.  I need the count of how many notes were entered by each role

 

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles



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