I've got a specific question how to design an OLAP cube in our data warehouse. We are an insurance company and I'm designing the data warehouse for the claims department. We have three significant dimensions: claim_type_dim, branch_office_dim, and date_dim. The measures we use are: claims_registered, claims_closed, open_claims.
A typical report we need to produce will show how many claims were registered, how many were closed, and how many are open - in a specific month, by claim_type_dim and branch_office_dim.
In the cube, each claim appears with a claim_id, and the month of the transaction of that claim. If the claim was opened that month, then I put 1 in the claims_registered measure. If the claim was closed that month, I put 1 in the claims_closed measure. If the claim is still open at the end of the month, I put 1 in the open_claims measure.
If the claim was registered in a previous month, but closed this month, then we'll see in the cube that in this month, claims_registered is 0 and claims_closed is 1.
If the claim was registered in a previous month, but is still open this month, then this month, claims_registered and claims_closed are both 0, but open_claims is 1.
In the report, I sum up claims_registered according to date_dim, claim_type_dim and branch_office_dim. The problem is that when I drill through, I get all the claims that appear in the cube that month, even though claims_registered may be 0 (as explained above).
Is this a design problem? If anybody has another idea for a design, I will be happy to hear it.
Thanks.
Sharona