View Single Post

   
  #2 (permalink)  
Old 04-19-2008, 06:19 AM
Charles Wang [MSFT]
 
Posts: n/a
Default Re: Design Question Again.

Hi Ed,
I think that you can add either add a column to your fact table or not. The
reason is that if you do not want to add it to your fact table, you can
create a view that combines your fact table and an additional column for
cancel status in your data warehouse. After that you can use it as the fact
table in your cube. This should be easily implemented in T-SQL statement.
You can also applies this method to your other requirements on ShipOut,
Pickup and Cancel. If you use ROLAP, the query performance may be slower
than putting them into one fact table. If you use MOLAP, the performance
impact can be ignored.

Hope this helps. Please feel free to let me know if you have any other
questions or concerns.

Have a nice day!

Best regards,
Charles Wang
Microsoft Online Community Support
================================================== =========
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg@microsoft.com.
================================================== =========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...#notifications.

Note: The MSDN Managed Newsgroup support offering is for
non-urgent issues where an initial response from the community
or a Microsoft Support Engineer within 1 business day is acceptable.
Please note that each follow up response may take approximately
2 business days as the support professional working with you may
need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by
contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
================================================== ==========
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== =======
"Ed" <Ed@discussions.microsoft.com> wrote in message
news:7071268F-7A66-43E7-BBBC-7EBAC96073A3@microsoft.com...
> Hi,
> I am a newbie and I have been studying DW for a while and I've
> successfully built some cubes.
> There is still one thing I am not sure how to design it in the fact table
> which is the COUNT. Let's say I have an Order Fact to record the order
> from
> customers. Then I have OrderDate, ShipDate, CancelDate, PickupDate, and
> some
> sales related measurments. How do I count how many orders were cancelled
> (I
> stored -1 as a value) for CancelDate? Should I add an measurment column
> that
> put a value of 1 if the order was cancelled and put 0 if the order was not
> cancelled so that it can be aggregated in the cube? I need the same thing
> to
> count the pickup since some customers pick up in the store not ship out
> and I
> need to be able to generate the comparison between ShipOut, Pickup, and
> Cancel.
>
> Thanks so much
>
> Ed
>


Reply With Quote