![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi Asim, Does the fact table contain sales records (so that qty = 0 is equivalent to no fact records), and are you using AS 2005? - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
[Count Weeks On Sale] could be something like: Count(NonEmpty([Time].[Week].[Week].Members, {[Measures].[Qty]})) Similarly, [Last sale Week] could be like: Tail(NonEmpty([Time].[Week].[Week].Members, {[Measures].[Qty]}).Item(0).Item(0).Name But I'm not sure about [% of Stores Selling], until I know more about the [Store] dimension - if there is one ... - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#6
| |||
| |||
|
|
[Count Weeks On Sale] could be something like: Count(NonEmpty([Time].[Week].[Week].Members, {[Measures].[Qty]})) Similarly, [Last sale Week] could be like: Tail(NonEmpty([Time].[Week].[Week].Members, {[Measures].[Qty]}).Item(0).Item(0).Name But I'm not sure about [% of Stores Selling], until I know more about the [Store] dimension - if there is one ... - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#7
| |||
| |||
|
|
Thanks, I'll give this a go. There is no third store dimension for this formula. Only two dims are involved, the time and the sales. Store_cnt is a simple attribute at the lowest level in the sales heirarchy as is Qty. Asim. Deepak Puri wrote: [Count Weeks On Sale] could be something like: Count(NonEmpty([Time].[Week].[Week].Members, {[Measures].[Qty]})) Similarly, [Last sale Week] could be like: Tail(NonEmpty([Time].[Week].[Week].Members, {[Measures].[Qty]}).Item(0).Item(0).Name But I'm not sure about [% of Stores Selling], until I know more about the [Store] dimension - if there is one ... - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
Well, then I'm unclear about what the fact table, and the measure "Store_Count" in particular, represent. Is each row just a periodic snapshot summary of sales activity, so that there could be rows with Qty = 0? - Deepak Deepak Puri Microsoft MVP - SQL Server *** Sent via Developersdex http://www.developersdex.com *** |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |