Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
msshawn3019
Contributor II
Contributor II

Closure Rate using Set Analysis where Closed Date between MonthStart(Opened Date) and MonthEnd(Opened Date)

Trying to calculate closure rate of tickets Closed in the same month they were Opened.  My Dimension is [Opened Month-Year]

This does not work:

=Count({<[Status Code]={'C', 'N'}, [Closed Date] = {">=$(=MonthStart([Opened Month-Year]))<=$(=MonthEnd([Opened Month-Year]))"} >} Distinct [Ticket Nbr])/Count( Distinct [Ticket Nbr])

This only produces correct results for May-2023.  I need calculation for all Opened month periods.

=Count({<[Status Code]={'C', 'N'}, [Closed Date]={">=05/01/2023<=05/31/2023"} >} Distinct [Ticket Nbr])/Count( Distinct [Ticket Nbr])

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda

@msshawn3019  try below

=Count({<[Status Code]={'C', 'N'},[Ticket Nbr]={"= [Closed Date] >=MonthStart([Opened Month-Year]) and [Closed Date]<=MonthEnd([Opened Month-Year])"} >} Distinct [Ticket Nbr])/Count( Distinct [Ticket Nbr])

View solution in original post

3 Replies
sidhiq91
Specialist II
Specialist II

@msshawn3019  Could you please provide us sample data that would help us understand further and help you with a solution.

Kushal_Chawda

@msshawn3019  try below

=Count({<[Status Code]={'C', 'N'},[Ticket Nbr]={"= [Closed Date] >=MonthStart([Opened Month-Year]) and [Closed Date]<=MonthEnd([Opened Month-Year])"} >} Distinct [Ticket Nbr])/Count( Distinct [Ticket Nbr])
msshawn3019
Contributor II
Contributor II
Author

This works! THANK YOU!  You're amazing!