sql server - SSAS cube with date range records -


i have build cube based on date range records, , not sure best way proceed.

imagine cube of cars , warranty periods. each car has start date, , end of warranty periods. there may extended warranty periods.. imagine

car reg    type      warranty start    warranty end car      purchase    01/01/2016        31/01/2016 car      extended    01/01/2017        30/06/2017 car      extended    01/08/2017        30/01/2018  -- note, gap here car b      purchase    01/01/2016        31/01/2016 car b      extended    01/01/2017        30/06/2017 car b      extended    01/08/2017        30/01/2018  -- note, gap here 

so multiple items, multiple date ranges. there main table (cars) car details (colour, model, etc).

now want build cube, reportable @ month level, cars under warranty/warranty type, etc.

so plan 1 build view explodes above out join date table, report month, , feed cube. but, number of cars multiplied months covered leads multi hundreds of milions of rows - means server runs out of tempdb space, , when run, cube takes hours build.

is there better way - such view car details, , view on warranty table (how ssas deal months in date range) - join in ssas more efficient join in view in sql?

thanks all.

you can connect start , end columns time dimension. , on report can use ":" operator build date tange report. more details find here: http://www.purplefrogsystems.com/blog/2013/04/mdx-between-start-date-and-end-date/


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -