Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I'm a relatively newbee regarding PowerBI and working on some reports linked to a ticketing tool, TOPdesk.
I would like to calculate and report the number of new, open and closed tickets over a period of time, or on a selected date.
Tried several measures, but I'm not getting there. Hope someone can give me some direction.
Here's some example data.
TicketID | creationDate | completed | completionDate |
123 | 1-2-2020 | True | 1-3-2020 |
234 | 15-2-2020 | False | |
345 | 3-3-2020 | True | 17-3-2020 |
456 | 17-3-2020 | False | |
567 | 4-5-2020 | True | 5-5-2020 |
678 | 14-5-2020 | True | 16-5-2020 |
789 | 17-9-2020 | True | 19-9-2020 |
Solved! Go to Solution.
Hi, @Anonymous
According to your description, I think you can create a calendar table and three measures in card.
Like this:
new = var a=SELECTEDVALUE('Table 2'[Date])
return COUNTX(FILTER(ALL('Table'),[creationDate] =a),[TicketID])+0
open = var a=SELECTEDVALUE('Table 2'[Date])
return COUNTX(FILTER(ALL('Table'),[creationDate] <a&&([completionDate]>a||[completionDate]=BLANK())),[TicketID])+0
closed = var a=SELECTEDVALUE('Table 2'[Date])
return COUNTX(FILTER(ALL('Table'),[completionDate]<=a&&[completionDate]<>BLANK()),[TicketID])+0
Here is my sample .pbix file.Hope it helps.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
According to your description, I think you can create a calendar table and three measures in card.
Like this:
new = var a=SELECTEDVALUE('Table 2'[Date])
return COUNTX(FILTER(ALL('Table'),[creationDate] =a),[TicketID])+0
open = var a=SELECTEDVALUE('Table 2'[Date])
return COUNTX(FILTER(ALL('Table'),[creationDate] <a&&([completionDate]>a||[completionDate]=BLANK())),[TicketID])+0
closed = var a=SELECTEDVALUE('Table 2'[Date])
return COUNTX(FILTER(ALL('Table'),[completionDate]<=a&&[completionDate]<>BLANK()),[TicketID])+0
Here is my sample .pbix file.Hope it helps.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Seem like very similar to my HR blog
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
69 | |
46 | |
39 | |
33 |
User | Count |
---|---|
163 | |
110 | |
61 | |
51 | |
40 |