I have a fact table include the following fileds:
period store product salesperson forcast actual
030501 0001 0001 1001 4 3
030501 0001 0002 1001 3 0
030515 0002 0001 1002 5 0
.....
Now ,I want know how many stores have saled some a products and total forcast.
as above data ,only one store(0001) have saled product(0001) at all
periods and salespersons,total forcast value is 4+3+5=12.
the report format and result like the following :
period product salesPerson totalforcast storecount
all all all 12 1
all 0001 all 9 1
030501 0001 all 7 1
all 0002 1002 5 0
any one can give me a idea,thanks!
period store product salesperson forcast actual
030501 0001 0001 1001 4 3
030501 0001 0002 1001 3 0
030515 0002 0001 1002 5 0
.....
Now ,I want know how many stores have saled some a products and total forcast.
as above data ,only one store(0001) have saled product(0001) at all
periods and salespersons,total forcast value is 4+3+5=12.
the report format and result like the following :
period product salesPerson totalforcast storecount
all all all 12 1
all 0001 all 9 1
030501 0001 all 7 1
all 0002 1002 5 0
any one can give me a idea,thanks!