Forum Discussion

Kish1999's avatar
Kish1999
Helper II
3 years ago

Issues Closed each Month

Hello All,

I have a requirement where I have to show the Issues that were open for > 10 days.  I have written the below measure to get this: 

Days =
Var  Inp = Calculate(MAX(Table[HISTORY_CREATED]), Table[HISTORY_STATUS] = "In Progress")
Var Acc = Calculate(MAX(Table[HISTORY_CREATED]), Table[HISTORY_STATUS] = "Accepted")
Return
CALCULATE(NETWORKDAYS(Inp,Acc,1))
 
Now when i filter this by month, I see duplicates of issues for some months. Suppose an issue was "in progresss" on 20th June and was "closed" on 2nd July, it would show on both June and July's data. Below is a sample data:
IssuesstatusDate
   
AIn Progress01-01-2023
AClosed02-02-2023
BIn Progress03-03-2023
BClosed04-04-2023
CIn Progress14-02-2023
CClosed16-02-2023

 

an someone please help me with the requirement