GManNAtl Posted August 28, 2011 Posted August 28, 2011 I have a table of transactions in which there are hundreds for each day that are timestamped. I want to create a "dashboard" that will show the number of transactions for the current day, previous day, current week, previous week, month etc. The only way I can think to do this is to create a separate relationship for each date period I want to show. Basically, have a Today, Yesterday, ThisWeekStart, ThisWeekEnd, LastWeekStart, LastWeekEnd, etc. fields in the dashboard layout, then build SEVERAL relationships to the transaction table where the relationship is based on the dates then have calculation fields that "count(transactions::field)." There has to be a cleaner way of accomplishing this, without all the relationships but I can't seem to get my head around it. Any help is greatly appreciated.
comment Posted August 28, 2011 Posted August 28, 2011 Perhaps you could reduce the number of relationships by filtered portals - for example, have a relationship for this week, and use filtered portals to extract today's and yesterday's records out of the related set. Not sure how fast this is going to be, though, with hundreds of records per day. The "cleaner" method would be to summarize the transactions in their own table.
Recommended Posts
This topic is 4837 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now