Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello BI Group,
I am attempting to create a rolling day count of open & closed tickets, based on the fact that the
the open tickets date column is BLANK and the closed date field is not.
My first measure to count the number of closed tickets is (and is calculating the correct number) :
Solved! Go to Solution.
This solution is actually for calculation a rolling day count of Open and Closed tickets in a help desk system.
First, I had to create one measure to count the number of rows in the table helpdesk.
Two, I had to create a measure that counted the number of open tickets by their status' (status column)
( I had to dig in the data to see what ticket categories were for open, and then for closed tickets.
Open = Resolution Date is NOT populated.
Closed = A populated resolution date.
I had to create two DateDIM tables, one for open tickets, and the other for closed tickets.
You need a relationship between the DateDim table and the helpdesk table joined by the creation date.
You need a relationship from the second Date2Dim table and the helpdesk table's resolution date.
After creating the above measures, additional table, and the relationships, the below measures worked correctly.
HelpDesk Open 7 Days = CALCULATE([HelpDesk-CountOpenTx], DATESINPERIOD(DateDim[Date], MAX(DateDim[Date]), -7, DAY))
HelpDesk Closed 7 Days = CALCULATE([HelpDesk-CountClosedTx], DATESINPERIOD(DateDim2[Date], MAX(DateDim2[Date]), -7, DAY))
I hope this helps someone out in the future.
PR
This solution is actually for calculation a rolling day count of Open and Closed tickets in a help desk system.
First, I had to create one measure to count the number of rows in the table helpdesk.
Two, I had to create a measure that counted the number of open tickets by their status' (status column)
( I had to dig in the data to see what ticket categories were for open, and then for closed tickets.
Open = Resolution Date is NOT populated.
Closed = A populated resolution date.
I had to create two DateDIM tables, one for open tickets, and the other for closed tickets.
You need a relationship between the DateDim table and the helpdesk table joined by the creation date.
You need a relationship from the second Date2Dim table and the helpdesk table's resolution date.
After creating the above measures, additional table, and the relationships, the below measures worked correctly.
HelpDesk Open 7 Days = CALCULATE([HelpDesk-CountOpenTx], DATESINPERIOD(DateDim[Date], MAX(DateDim[Date]), -7, DAY))
HelpDesk Closed 7 Days = CALCULATE([HelpDesk-CountClosedTx], DATESINPERIOD(DateDim2[Date], MAX(DateDim2[Date]), -7, DAY))
I hope this helps someone out in the future.
PR
User | Count |
---|---|
25 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
27 | |
13 | |
13 | |
11 | |
6 |