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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Count tickets assigned and tickets resolved

Hello community!

 

i'm in need of help, I'm not able to get the total of tickets assigned and resolved for each member of my team.

On powerbi I have 3 tables, Calendar Table, Incidents table & Teams Table. 

 

Incidents:

ccrdvx_2-1649377711119.png

 

Team:

ccrdvx_3-1649377732381.png

 

 

 

I want to get the total created, resolved and assigned tickets for each team member.

 

The current active relationship is Incidents[assigned to] with Team[names]

ccrdvx_0-1649377534292.png

 

 

Total Resolved = COUNTA(Incidents[resolved_by])
Total Assigned To = COUNTA(Incidents[assigned_to])
 
Both of this measures return the same number, but it should be different

ccrdvx_1-1649377622212.png

 

I'm lost and don't know how to get the right number for each column, it seems the relationship is only counting the "assigned to" column regardless.

 

thanks in advance

 

 

 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , You can join both Created date and resolved date with the calendar table. One join will inactive, You can activate that usinguserelationhip

1n case your date has timestamp, create the date column first

Open Date  = Datevalues([Sys Created Date])  // do same for resolve date

 

calculate( count(Table[ticket]),USERELATIONSHIP ('Table'2[Open Date ], 'Date'[Date]))

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Icey
Community Support
Community Support

Hi @Anonymous ,

 

I think this may be what you want:

Total Resolved = CALCULATE( COUNTA(Incidents[resolved_by]),USERELATIONSHIP(Incidents[resolved_by],Team[Full Name]))

Icey_0-1649833889939.png

Icey_1-1649833913871.png

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thank you @amitchandak 

One question, will this relationship with dates will allow me to see the tickets created / tickets resolved by each team member, even if there is no relation between [Created By] and [Resolved By]?

 

 

 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

I think this may be what you want:

Total Resolved = CALCULATE( COUNTA(Incidents[resolved_by]),USERELATIONSHIP(Incidents[resolved_by],Team[Full Name]))

Icey_0-1649833889939.png

Icey_1-1649833913871.png

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , You can join both Created date and resolved date with the calendar table. One join will inactive, You can activate that usinguserelationhip

1n case your date has timestamp, create the date column first

Open Date  = Datevalues([Sys Created Date])  // do same for resolve date

 

calculate( count(Table[ticket]),USERELATIONSHIP ('Table'2[Open Date ], 'Date'[Date]))

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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