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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
bhmiller89
Helper V
Helper V

Calculated Measure

I have a table called "Contact Notes" that includes a column called "CreatedbyUserID" and "Note."

 

I need to calculate how many Notes were entered for each user (by ID).

 

I tried Note Count= CALCULATE(COUNTA(tblContactNotes'[Note]), tblContactNotes'[IsAuto]= 0, tblContactNotes'[IsSystem] = 0)

 

BUT  I need to calculate quantity of notes based on the person who entered them. Right now it's populating the total based on the client name, not the user who entered the note.

5 REPLIES 5
Anonymous
Not applicable

What do you mean it's populating the total based on the client name? Are you charting this measure against a client name column? It looks like it would work if you charted it with the CreatedbyUserID column.

I'm trying to replicate a spreadsheet that shows

 

Organization | Account Manager | TSM | Program Manager| #Notes by Account Manager| #Notes by TSM| #Notes by Program Manager

 

However, the measure I wrote just sums up all notes for the Organization and I don't know how to write multiple measures for each role

Anonymous
Not applicable

I still don't quite understand what you're asking for. Do you want to see a list of users with each of their total numbers of notes? If so, the measure you have written should work. You just have to plot it alongside the list of users. I assume that's the CreatedbyUserID column, but maybe you have another table of user names? That would have to be related to this notes table through the user ID.

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

 

Is what I'm using. When I change the relationship to count them for the "TSM" I change The USERELATIONSHIP to map the TSMID to the UserID but Im' getting the same values for both 

Anonymous
Not applicable

It would probably help to see your table relationships.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.