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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Calculate the number of new, open, closed tickets per day or week

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
1231-2-2020True1-3-2020
23415-2-2020False 
3453-3-2020True17-3-2020
45617-3-2020False 
5674-5-2020True5-5-2020
67814-5-2020True16-5-2020
78917-9-2020True19-9-2020



1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

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

 

1.png

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.

View solution in original post

3 REPLIES 3
v-janeyg-msft
Community Support
Community Support

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

 

1.png

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
Not applicable

Thanks @amitchandak . I'll dive in to it. 

amitchandak
Super User
Super User

@Anonymous , Seem like very similar to my HR blog

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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