Forum Discussion
Tickets, Open, Closed and backlog
Hello All,
I’m new to Power Bi and thought I knew enough from Excel to make it in Power Bi….
Not.
Attached (via Dropbox, because I could not add attachments directly to this post) I have the example in Excel (Test data)
I have the following:
I have a list of Servicedesk tickets.
Those tickets have a creation date, and if they are closed a Closed date.
I would like to create an overview showing one or more years but per month (with a chart) of the Tickets created per month, the tickets closed in that same month and also the Backlog per month.
In the attached excel you will find the Created date (time is not important), de Date Closed.
And a Column containing the last day of the month, and behind that, calculated the backlog (the number of open items in that specific month)
=COUNTIFS(A:A;"<="&EOMONTH(A2;0);B:B;">"&EOMONTH(D2;0))+COUNTIFS(A:A;"<="&EOMONTH(D2;0);B:B;"")
Is someone able to help me out to create this overview in Power Bi?
I also have a date table available in Power Bi.
Thanks.
Here's how I would calculate backlog. Feel free to adjust.
12 Replies
- lbendlinSuper User
See attached for one implementation of the tickets opened/closed per month. Read about USERELATIONSHIP.
For the backlog you need to provide more information. What's the beginning backlog? How do you define current backlog?
- AnonymousNot applicable
Hello Ibendlin,
Thank you for your reply and “Ticketpbix” file.
The “attached Excel file” is calculating the backlog, with the following formula:
=COUNTIFS(A:A;"<="&EOMONTH(A2;0);B:B;">"&EOMONTH(D2;0))+COUNTIFS(A:A;"<="&EOMONTH(D2;0);B:B;"")By validating if a ticket for that month or the previous month was still open at the end of the month.
I don’t have to provide a “start” backlog date. Excel is calculating this for me.
I was hoping to use the same method in PowerBi so that based on a Creation date and having or missing a close date it could calculate the open items at the end of each month.
Thanks for your help already.
Emoes
- lbendlinSuper User
"validating if a ticket for that month or the previous month was still open at the end of the month."
that would be equivalent to
Backlog = var em = ENDOFMONTH(Dates[Date]) var f = filter(all(Tickets),Tickets[Created]<=em && Tickets[Created]>=edate(em,-2) && COALESCE(Tickets[Closed],em)>em) return countrows(f)but it does not match your backlog table at all. Please explain your business logic for calculating backlog.
Please explain why some tickets are closed before they are created.
- PavaniHelper II
Great thank you
- RubenBCFrequent Visitor
Hi All,
I have a similar situation than you Anonymous, lbendlin . Following your example and the solution, if I would like a list of tickets in backlog, do you know how I can do it? I mean, I select one point in the graph the filter only apply to the month I select and it doesn't show the backlog data from previous months
For example If I select July 2021, the table shows the tickets open on July and not the 66 backlog list.
Thanks
- DiKi-IPost Partisan
Hi @Ibendlin
How I can get this work both at daily,montly and yearly grain?- lbendlinSuper User
DiKi-I please open a new thread. Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523