Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Analyzing WIP through OLAP

Status
Not open for further replies.

donbuz

IS-IT--Management
Aug 7, 2007
2
CA
Good Day everyone,

I have an "item Fact table" that is comprised of two dates fields (pointing to a Time dimension table) StartDate and EndDate. I also have several other dimensions that I basically use to answer trivial questions such as "How many items were 'started' 'per customer 'per area'...?"

I'd like to know if there is a way I could generate sort of a WIP Report showing how many items were "not closed" at the end of each month without having to create another fact table especially dedicated to that purpose ?

Thanks for your support !
 
You can use an outer join from a dimension to the fact table and select the records where no fact is present. (anti-join)

Or you can use the minus operator.

I am not really sure you want to use either of these solutions.
 
Thanks Hans,

I guess I can create a new fact table from a view with something like this : SELECT T0.ID, T1.FullDateAlternateKey FROM (SELECT * FROM DimTime WHERE DayNumberOfMonth = 1) T1 LEFT JOIN FactItems T0 ON T0.StartDate <= T1.FullDateAlternateKey AND T1.FullDateAlternateKey <= T0.CloseDate
and then just use a basic count items measure...

Once again thank you for your time !




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top