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
ChrisR22
Helper III
Helper III

Counting occurrences that a value is present more than once in a column

Hello,

 

I have a dataset that involves tickets closed by employees (see below)

Ticket AssigneeTicket IDDate Closed
Smith, Bob (ABC123)

123ABC

1/5/24

Smith, Bob (ABC123), Hill, Jane (DEF456)456DEF1/6/24
Hill, Jane (DEF456), Allen, Peter (GHI789), Smith, Bob (ABC123)789GHI1/8/24

 

The parenthesis show the employee code. I am looking to do two things:

 

1. Count the number of times a ticket has more than 1 assignee

2. count the number of tickets each person closes (regardless of whether they are the sole assignee or one of multiple, they should still get a count of 1 for each ticket they are involved with).

 

I have split the rows by the delimeter so that each one now has it's own ticket assignee, which has resulted in many rows with the same ticket ID. Is there a formula for a measure that will count all the occurances where a ticket ID occurs more than once?

 

Does anyone have any thoughts on how to achieve this?

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Write these measures

Rows = countrows(Data)

Measure = countrows(values(Data[Ticket ID]),[Rows]>1)

Drag the second one to a card visual.

Hope this helps.


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

It is rather unfortunate that a field separator is also used inside a field (the comma in the name)  so the cleanup takes a bit longer.  By the way, absolutely nothing wrong with multiple rows per ticket.

 

See attached.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors