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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Need to count string and total with string in another table

Hello, 

 

I am working on a report with many sources and am having trouble totaling the number of tickets a person is assigned and assists with. 

One of the main relationship in the report is from my table 'Resource' and column 'UserName' which holds a persons First and Last Name (Jenny Smith)
The source with the data is the table 'SupportTickets' and using the columns [Assigned to] and [Tags] 

 

If a name is in the [Tags] then that means they assisted the person who was assigned the ticket.
The columns with [Tags] contains the first name and last initial of any user within the 'Resource'[UserName].

Difference in name display example: 

'Resource'[UserName] = Jenny Smith

'SupportTickets'[Tags] = Jenny S.

 

What i would expect counting the sum of 'Tags' to look like if it were in a table (numbers are just for the example)

'SupportTickets'[Tags] →
'Resource'[UserName] ↓
Jenny S     Robert P.    Alex K.    
Robert Patrick204
Jenny Smith002
Alex King110
Total316

 

 

The next step would be to combine the two columns

'Resource'[UserName]    Count of 'SupportTickets'[Assigned To]    Sum of Assists ( 'Support Tickets'[Tags])    Total Tickets    
Robert Patrick213
Jenny Smith235
Alex King268

 

The final result should look like this

'Resource'[UserName]      Total Tickets    
Robert Patrick3
Jenny Smith5
Alex King8

 

 

I am still fairly new to Powerbi, to that i mean i only have basic experience creating and useing DAX measures. If possible i would like to stick to that method.

 

Thank you in advance.

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Trust me not even the most intelligent AI bot can guess that Robert P.2 is Robert Peter.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

If there are 2 people = Robert Patrick and Robert Peter, then how would one be abl to differentiate them in the Tags column - both would be Robert P.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Great question. The tags would indentify the second "Robert P." as "Robert P.2" and so forth for any additionals

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors