Question on how I set up my List

neg177
Super Contributor

Question on how I set up my List

Hi,

 

I need advice on how to set up something in my Model. I need to pull into my Modules a Time Setting that excludes Bank Holidays. I have created a List of all the Bank Holidays and plan to use this as a filter in my Module's. I want to know if this is the correct way to approach this task? A screen shot is attached. 

 

Thank you

4 REPLIES 4
rob_marshall
Moderator

@neg177 

 

First, please remove the properties from the list and instead create a module dimensionalized by this list and Time at the Year, it will be much better and easier to use.  Then, in your SYS Time - Day module, you will now be able to look up these values.  Create the following line items:

Year: item(time) with a time period of Year

Bank Holiday?: start() = module you just create.line item (I would assume Holiday)[lookup:year]. Bank Holiday should be a boolean

 

Rob

mshaw
Occasional Contributor

Hello @rob_marshall,
To get this to work, does the SYS TIME - Day module need to be dimensioned by the holiday list also?
Thanks,
Mike
rob_marshall
Moderator

@mshaw 

 

Yes, you should have 3 modules in total.

 

First, create a Holiday list having a Top Level:

2021-11-10_07-48-45.png

 

SYS Holiday Observed:

  • Dimensionalized by Holiday list and Time at the year level
  • Line Item: Observed Date formatted as Date
    2021-11-10_07-38-16.png

SYS Time Filter - Day

  • Dimensionalized by Time at the Day Level
  • Line item FY Year formatted as Time Period Year.  Formula: PERIOD(START())

 

SYS Holiday Day:

  • Dimensionalized by Holiday List and Time, at the Day level
  • Line item Is Holiday formatted as a boolean with a summary of ANY.  Formula: SYS Holiday Observed.Observed Date[LOOKUP: 'SYS Time Filter - Day'.FY Year] = START()
    2021-11-10_07-53-44.png
    2021-11-10_07-54-28.png

In the SYS Time Filter - Day module, create a new line item Is Holiday? with the formula: SYS Holiday Day.Is Holiday?

2021-11-10_07-51-13.png

I put a filter on it so you would see all of the Holidays are correct.

 

Hope this helps,

 

Rob

mshaw
Occasional Contributor

@rob_marshall
This is very helpful. Thank you for the very detailed reply!
Mike