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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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