Forum Discussion
Anonymous
8 years agoNot applicable
Count occurrences in a time interval
Hi everyone, Have been struggeling with this for a while so I have to ask if someone can help me. Been going through many forum threads but I can't get anything to work. I need to count the occu...
- Anonymous8 years ago
Try this and let me know if it works:
Count = VAR TwoWeeksafter = [Date] + 14 VAR TwoWeeksbefore = [Date] - 14 VAR PHtoCheck = [PhoneNumber] RETURN CALCULATE ( COUNTROWS (Table); ALL (Table); Table[PhoneNumber] = PHtoCheck; Table[Date] <= TwoWeeksFromDate; Table[Date] >= TwoWeeksbefore; )
Anonymous
8 years agoNot applicable
Try this and let me know if it works:
Count = VAR TwoWeeksafter = [Date] + 14 VAR TwoWeeksbefore = [Date] - 14 VAR PHtoCheck = [PhoneNumber] RETURN CALCULATE ( COUNTROWS (Table); ALL (Table); Table[PhoneNumber] = PHtoCheck; Table[Date] <= TwoWeeksFromDate; Table[Date] >= TwoWeeksbefore; )
Anonymous
8 years agoNot applicable
Thank you Anonymous!!
This worked out perfectly. Been struggeling for so long, thanks a lot.