New here and new to crystal but hope to learn fast and contribute where I can. I've used crystal for a grand total of about two weeks.
I'm trying to find away to count discretely based on the count of each unique value. I have a field that has the date for each piece of data. What I am trying to do is isolate the number of days in which there are more than 5 appearances.
Let's assume its sales data (its not) and I had data for each sale. What I want to do is break down the number of days in which we had more than 5 sales.
Any idea on how I'd do that?
In pseudocode I guess I'd be trying to do something like this from what I remember of basic.
x = 0
for day in (start_date to end_date)
if count of day > 5
return
x = x + 1
else
end
So if in a given week we'd had:
Monday: 3 sales
Tuesday: 4 sales
Wednesday 6 sales
Thursday: 7 sales
Friday: 9 sales
The result of the formula would be 3.
or something like that, but no idea how to syntax it. Can someone help me out? Maybe I'm thinking about this wrong.