Hi Andreas,
Thanks again for your reply.
I think I have not put my requirement properly in the discussion. Here I am putting the exact scenario. Please help me out if possible.
I am pulling HR Base numbers(Head Count) from BEx query into WEBi. And then I have created 3 variables namely
1) No. Of Weeks ( Get Number of weeks for the period)
2) YTD Periods ( Formula:- RunningSum([Period];[Store])
3) YTD Weeks. (Formula:- RunningSum([No. Of Weeks];[Store])
In my report, I have 2 dimensions placed in CROSS TAB.
Dimension 1: Fiscal Year Period (Hidden in WEBi)
Dimension 2: Store
And I have applied Break on Fiscal Year Period.
My report requirement is below.
Period | Period Terms | YTD Terms | No. of Weeks In Period | YTD Weeks | Comments |
P1 | 4 | 4 | 4 | 4 | |
P2 | 3 | 7 | 4 | 8 | |
P3 | 4 | 11 | 5 | 13 | |
P4 | 5 | 16 | 4 | 17 | |
P5 | 3 | 19 | 4 | 21 | |
P6 | Excluded for Store | ||||
P7 | 3 | 3 | 4 | 4 | YTD Weeks and YTD Period starts over in this period |
P8 | 1 | 4 | 4 | 8 | |
P9 | Excluded for Store | ||||
P10 | 6 | 6 | 4 | 4 | YTD Weeks and YTD Period starts over in this period |
P11 | 4 | 10 | 4 | 8 | |
P12 | 2 | 12 | 5 | 13 |
And my report output I need in CROSS TAB as below.
P01, P02…P12 are Dimension:- Fisc. Period | Dimension: Store | |||
Store 1 | Store 2 | Store 3 | Store 4 | |
---|---|---|---|---|
P01 Base | 52 | 45 | 35 | 39 |
No. Weeks | 4 | 4 | 4 | 4 |
YTD Periods | 1 | 1 | 1 | 1 |
YTD Weeks | 4 | 4 | 4 | 4 |
P02 Base | 48 | 45 | 37 | 41 |
No. Weeks | 4 | 4 | 4 | 4 |
YTD Periods | 2 | 2 | 2 | 2 |
YTD Weeks | 8 | 8 | 8 | 8 |
P03 Base | 0 | 0 | 35 | 39 |
No. Weeks | 0 | 0 | 5 | 5 |
YTD Periods | 0 | 0 | 3 | 3 |
YTD Weeks | 0 | 0 | 13 | 13 |
P04 Base | 48 | 45 | 37 | 41 |
No. Weeks | 4 | 4 | 4 | 4 |
YTD Periods | 1 | 1 | 4 | 4 |
YTD Weeks | 4 | 4 | 17 | 17 |
P05 Base | 48 | 45 | 37 | 41 |
No. Weeks | 4 | 4 | 4 | 4 |
YTD Periods | 2 | 2 | 5 | 5 |
YTD Weeks | 8 | 8 | 21 | 21 |
P06 Base | 0 | 0 | 37 | 41 |
No. Weeks | 0 | 0 | 5 | 5 |
YTD Periods | 0 | 0 | 6 | 6 |
YTD Weeks | 0 | 0 | 26 | 26 |
P07 Base | 48 | 45 | 37 | 41 |
No. Weeks | 4 | 4 | 4 | 4 |
YTD Periods | 1 | 1 | 7 | 7 |
YTD Weeks | 4 | 4 | 30 | 30 |
P08 Base | 48 | 45 | 37 | 41 |
No. Weeks | 4 | 4 | 4 | 4 |
YTD Periods | 2 | 2 | 8 | 8 |
YTD Weeks | 8 | 8 | 34 | 34 |
P09 Base | 0 | 0 | 42 | 46 |
No. Weeks | 0 | 0 | 4 | 4 |
YTD Periods | 0 | 0 | 9 | 9 |
YTD Weeks | 0 | 0 | 38 | 38 |
P10 Base | 54 | 48 | 47 | 51 |
No. Weeks | 4 | 4 | 4 | 4 |
YTD Periods | 1 | 1 | 10 | 10 |
YTD Weeks | 4 | 4 | 43 | 43 |
P11 Base | 60 | 51 | 52 | 56 |
No. Weeks | 4 | 4 | 4 | 4 |
YTD Periods | 2 | 2 | 11 | 11 |
YTD Weeks | 8 | 8 | 47 | 47 |
P12 Base | 66 | 54 | 57 | 61 |
No. Weeks | 5 | 5 | 5 | 5 |
YTD Periods | 3 | 3 | 12 | 12 |
YTD Weeks | 13 | 13 | 52 | 52 |
The red highlighted periods will not have data for Store1 and Store 2 in BW as they are excluded into reports due to client conditions. In that case I need to reset the YTD Period and YTD Weeks in the following Period.
Hope it makes sense to understand for you.
Thanks in Advance
Muralidhar