Hello,
That's an interesting question and far from easy.
I would have a cube with 2 dimensions, other than the dimensions you did not write about like measure, account, product, ...:
- Client
- Week
Client would be a regular dimension, including rollups for whatever reporting you need.
Week (or Time or similar) would be a dimension with alternative hierarchies (AH) in PA-speak.
Main dimension name / AH: 'Week'. Elements: Total Week and as children all level 0 weeks. A week would have a naming convention like: 2019_W22.
As an exercise I created weeks from 2017_W01 until 2022_W53 with 53 weeks in each year.
Next, the leaves AH called 'Leaves'. Elements: generated by PAW so no need to worry about it. In fact it's very similar to the first AH we discussed.
Next, an AH called 'Quarter' with a Total and consolidated children: Q01, Q02, Q03, Q04 (or leave out the 0). These consolidated elements contain the relevant weekly elements. Here it will probably depend on 444 or 445 so this might lead to 2 separate AH. Make sure weeks are level 0 below the quarters in this AH.
Likewise, an AH called 'Month' with a Total and consolidated children: M01, M02, M03, ..., M12. These consolidated elements contain the relevant weekly elements. Here it will also probably depend on 444 or 445 so this might lead to 2 separate AH. Make sure weeks are level 0 below the months in this AH. You might want to add a week below 2 different month consolidations with a weight different from 1. It will be important to know / determine how a week falls within a/each month. Put differently, you need to maintain a calendar in a different cube. In the past I have solutions like input of the percentage of each week in each month. 2 days out of 5 would be 0.4 as the weight of week X in month Y. These weights will need to be used in setting up the hierarchies.
Yearly view in an AH: 'Weeks by Year'. Elements: Weeks by Year > 2018, 2019, 2020, 2021, ... > yyyy_W01, yyyy_W02, yyyy_W03, ..., yyyy_W52/53. This is very easy in theory. Yet in practice: could it be that some weeks are spread over 2 contiguous years ? Then same reasoning as for months.
Year-to-dates for weeks: Add a different AH. Like YTD W22 has children: 2017_W01, 2017_W02, ..., 2017_W22, 2018_W01, 2018_W02, ..., 2018_W22, [...], 2022_W01, 2022_W02, ..., 2022_W22
Year-to-dates for months: either build them into the AH for months, or add a different AH. If it's a different AH, proceed like in the example above about YTD for weeks.
You can go for a manual setup / maintainance of dimensions and hierarchies, but you will most probably be better off to maintain / setup these AH by using functions like HierarchyElementInsert, HierarchyElementComponentAdd, etc. Very similar to its better-known variants for dimensions.
Or use the built-in functionality to create simple AH: add an attribute to the main dimension and create the hierarchy based on the attribute.
In the screenshot you can see a mock-up: a value of 1 for 'Client 01' in any of the weeks.

- 10.png (34.47 KiB) Viewed 3613 times
My 2รง. Hope this helps !
Please post back any update / feedback / good-bad results you get !