I have a table with transactions. Each transaction have a CompanyID and a date. For a specific period I would like to count all CompanyID that also are found in previous periods. That is, I would like to count all repetitive CompanyID's per period.
This expression should count all CompanyID that also could be found in on other dates. What I would like to count is all CompanyID that also could be found on all previous dates from the made selection. That is, if the selection is August 2010 I would like to count all CompanyID in August that also could be found in all dates previous to August 2010.
Any suggestion how to change my expression is appreciated.