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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ShravanG
Regular Visitor

How to calculate Backlog Tickets

Hey Champs,

 

I'm new to power BI and trying to find the number of new,closed and  Backlog tickets in my data.

 

Scenario: I have two tables 

1. Tickets Data - It has ID, Created date, Solved Date and Status column

                           I created new tickets from Created date, Closed tickets from solved date

2. Date column created to establish non-active relationship to calculate new and closed tickets.

 

Below are the measure I have created for new and closed 

New_Tickets = CALCULATE(COUNT('Tickets Data'[ID]),
    USERELATIONSHIP('Tickets Data'[CREATED_AT], 'Date'[Date]))
________________________________________________________________________________
Closed_Tickets = CALCULATE(COUNT('Tickets Data'[ID]),
    USERELATIONSHIP('Tickets Data'[SOLVED_AT], 'Date'[Date]))
________________________________________________________________________________ 
Now I have calculated backlog for latest month as below 
 
In this case theoritically the backlog is calculated as:
if we are calculating it for month of February then
(the tickets should be created before february) and ((the tickets should not fall in closed, solved or deleted status)  OR (solved date should be in february or after))
 
1A_EOM_Backlog =
VAR MaxDate = DATE(YEAR(Today()), month(today()), 1)
VAR Result =
CALCULATE(
COUNT(Tickets Data[ID]),
'Tickets Data'[CREATED_AT] < MaxDate &&
 (NOT('Tickets Data'[STATUS] = "Closed" ||
      'Tickets Data'[STATUS] = "Solved" ||
      'Tickets Data'[STATUS] = "Deleted") ||
        'Tickets Data'[SOLVED_AT] >= MaxDate)
)
Return Result  
 ___________________________________________________________________________
I also calculated difference
 Difference = [New_Tickets] - [Closed_Tickets]
____________________________________________________________________________
 
I'm unable to write measure for the below (Bold , underlined) to calculate the number of backlog tickets for previous months. Can anyone please help me with this. @Greg_Deckler @TomMartens @amitchandak 
 
From Date tableMeasures created 
YearMonthNew_TicketsClosed_TicketsDifferenceBacklog Tickets
2022August4811478328373
2022September47084759-51322
2022October4531450922344
2022November41244137-13331
2022December4135410134365
2023January4569451851416

pls let meknow if you need any other information
3 REPLIES 3
ShravanG
Regular Visitor

Thank you for the replies, the problem has been solved now.

Ashish_Mathur
Super User
Super User

Hi,

Share the raw dataset to work with and show the expected result.


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

@ShravanG , seem very similar to HR problem

 

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

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

 

Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU

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.

Top Solution Authors