Hi,
I have a fact table containing the following columns:
- CustomerID
- RegionID
- CategoryID
- ItemID
- Price
Relationships:
- A customer belongs to only one particular region and category
- Each customer can buy the same item at different prices
- The measures are LowPrice and AveragePrice
Query
- For a particular customer, what was the customer price, average price and low price for some other combination of region and category ( this not the region and category,the customer belongs to)
For ex:
CutomerId RegionID CategoryID ItemID Price
1 1 2 1 2.00
2 2 3 1 6.00
3 2 3 1 4.00
Report should display for Customer 1 , Region 2 and Category 3 as
ItemID Price LowPrice AveragePrice
1 2.00 4.00 5.00
Iam stuck with this query for a long time now...Any help on the query will be appreciated.
Also, how would find the above result for all combinations of (regions and categories)
Thanks,
Prash