turnilo icon indicating copy to clipboard operation
turnilo copied to clipboard

Option to change business week

Open mihirtech opened this issue 5 years ago • 2 comments

The business week definition differs from business to business. Few prefer it Sunday to Saturday, others prefer Monday to Sunday. This is needed for WoW analysis and all weekly view of metrics.

  1. Can we have this option in the dashboard for setting week as A. Monday to Sunday or B. Sunday to Saturday?
  2. As a fallback, if this is not possible in the dashboard, is it possible to change the default settings through a config file, which would apply to all users?

mihirtech avatar May 02 '19 15:05 mihirtech

You can easily select desired days in fixed time filter tab and time shift of one week will just that - shift by 7 days.

Only visible UI with "week start day" is inside date picker but I don't think it matters a lot. We could add that property to configuration of turnilo, but I think it's low priority.

Other case is when selecting relative "week" options are floored to (Monday, Sunday) range. That's how chronoshift works (https://github.com/implydata/chronoshift/blob/d2ed2c76aa0cd6ed25fe933bc731644fa7e99828/src/floor-shift-ceil/floor-shift-ceil.ts#L45) and I'm not sure if we can change something there easily.

adrianmroz avatar May 06 '19 10:05 adrianmroz

@mihirtech - you could also define numeric dimension like "day of week" and use this dimension to simulate aggregation by any business week, e.g: 1 - Monday ... 7 - Sunday or 1 - Sunday .. 7 - Saturday.

mkuthan avatar May 09 '19 14:05 mkuthan