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

Don'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.

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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.