Forum Discussion

Wilhelm7870's avatar
Wilhelm7870
Frequent Visitor
11 years ago
Solved

How to create source data, e.g. a 'master calendar'?

Is it possible to 'create' a data source using 'query'? I'm trying to create a 'master calendar' that simply needs to contain one column with dates going back, say 3 months, and forward, say 6 months...
  • Anonymous's avatar
    Anonymous
    10 years ago

    amien is your fact table in SQL as well? Or does it come from an independent source?

    Just taking a quick look at this again, if everything is in SQL, you can make the code that populates the date dimension tables a procedure and pass in the min/max from the fact table +/- additional months (easy enough to add to the dates you return from the fact table.

     

    Would look something like

    Sproc1 - SSCentral script changed to procedure with input parameters for the dates.

    Sproc2 -

    1) Select start and end date from the fact table 

    2) Execute the date dimension procedure with the values from the fact table