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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.