Page 1 of 1

Counting items between a set of dates

Posted: Thu Mar 14, 2019 12:56 am
by rcd
I'm trying to set up an indicator to count bookings within the next week. What's the recommended approach? Should I use a stored procedure with BETWEEN, or can I use countif() in an expression?

Re: Counting items between a set of dates

Posted: Thu Mar 14, 2019 8:13 am
by Lech Kulikowski
Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.

Re: Counting items between a set of dates

Posted: Fri Mar 15, 2019 3:46 am
by rcd
Hi Lech,

I have a database with booking information. I am trying to display, on an indicator, a count of the bookings which will occur in the next week.

I am wondering whether I should set up an SQL query as a stored procedure, or whether I can apply some kind of filter in the dashboard.

Also; sorry for the repost.

Re: Counting items between a set of dates

Posted: Fri Mar 15, 2019 11:32 am
by HighAley
Hello,

If you need to show data for the next week on the whole dashboard it would be better to filter data in your SQL query.
The smaller amount of data will be processed by our engine faster.
Or you could set the Filter for the Indicator.

Thank you.