I have a campaign dimension ( Its a marketing campaign for a product ) and i have to measure the sales that happened during the campaign , Each campaign will have a duration ( start date and end date )
For Example : a sample record in the campaign dimension looks like this
CampaignKey : 1
CampaignName: XXXX
Cam[aignStartDate :01-01-2012
CampaignEndDate :11-01-2012
StartKey : 74561 ( refers to the primary key in time dimension )
EndKey :74667 ( refers to the primary key in time dimension )
i need to analyse the total sales that happened during a campaign , the cube shouldbe able to get the sales figure that happened between the start date and the end date for the given campaign ( i also have a time key in the fact table )
To do this i have added campaign key to the fact table and got the result.But in my campaign table there are also columns precampaigndate and postcampaigndate which are campaigndate-duration and campaigndate+duration respectively.
Now i want sales happend between precampaigndate to startdate and sales happend between postcampaigndate and enddate.
Could someone please hepl me out how to do this??