Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Update active relationship globally

Hi,   We have a requirement around modeling time zones that I'm having trouble with.   There is sales data that needs to be reported in both local and headquarters time zones.  We have both a dat...
  • VasTg's avatar
    VasTg
    6 years ago

    Anonymous 

     

    With your sample data, I was able to create what you asked with the approach I mentioned.

     

    For the 1st screenshot..

     

    3. Shows the input data in each table. Time_Period_flat(refer last screenshot) and Timezone are the new tables you have to build. Ignore the Today and Yesterday flag from Date dimension.

     

    1. Shows the data for Local Time.Today and Yesterday flag comes from Time_Period_flat table and the slicer are from TimeZone table(or you could avoid Timezone table and add slicers directly from Time_period_flat).

     

    2. Shows the data for EST.Today and Yesterday flag comes from Time_Period_flat table and the slicer are from TimeZone table(or you could avoid Timezone table and add slicers directly from Time_period_flat).

     

     

    Here is the model.

    Relationship

     

     

     

    Once you build the table Time_Period_flat, you could utilize the approach without any changes to measure.

     

     

    Edit:

     

    Ignore the Time_Period_flat table data from 1st screenshot..

    Refer below for complete data.

     

     

    If it helps, mark it as a solution

    Kudos are nice too.