Forum Discussion
CPSTC
8 years agoRegular Visitor
Count IF Column
Hi All, I have a number of columns that are dates, What I want to do is to create a column that counts how many of those dates fall between a specific date range. For instance I have a record...
Greg_Deckler
8 years agoCommunity Champion
Bit brute force, but how about this?
MyCount = VAR date1 = IF([Date] < DATE(2017,08,19) && [Date] > DATE(2017,08,15),1,0) VAR date2 = IF([Date] < DATE(2017,08,19) && [Date] > DATE(2017,08,15),1,0) VAR date3 = IF([Date] < DATE(2017,08,19) && [Date] > DATE(2017,08,15),1,0) VAR date4 = IF([Date] < DATE(2017,08,19) && [Date] > DATE(2017,08,15),1,0) VAR date5 = IF([Date] < DATE(2017,08,19) && [Date] > DATE(2017,08,15),1,0) RETURN date1 + date2+ date3 + date4 + date5
CPSTC
8 years agoRegular Visitor
Thanks for your help Greg_Deckler