Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2812

Re: Resetting running sum based on condition

$
0
0

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.

PeriodPeriod
Terms
YTD
Terms
No. of Weeks
In Period
YTD WeeksComments
P14444
P23748
P3411513
P4516417
P5319421
P6Excluded for Store
P73344YTD Weeks and YTD Period starts over in this period
P81448
P9Excluded for Store
P106644YTD Weeks and YTD Period starts over in this period
P1141048
P12212513

 

And my report output I need in CROSS TAB as below.

P01, P02…P12 are  Dimension:- Fisc. PeriodDimension: Store
Store 1Store 2Store 3Store 4
P01  Base52453539
No. Weeks4444
YTD Periods1111
YTD Weeks4444
P02  Base48453741
No. Weeks4444
YTD Periods2222
YTD Weeks8888
P03  Base003539
No. Weeks0055
YTD Periods0033
YTD Weeks001313
P04  Base48453741
No. Weeks4444
YTD Periods1144
YTD Weeks441717
P05  Base48453741
No. Weeks4444
YTD Periods2255
YTD Weeks882121
P06  Base003741
No. Weeks 00 55
YTD Periods0066
YTD Weeks002626
P07  Base48453741
No. Weeks4444
YTD Periods1177
YTD Weeks443030
P08  Base48453741
No. Weeks4444
YTD Periods2288
YTD Weeks883434
P09  Base004246
No. Weeks0044
YTD Periods0099
YTD Weeks003838
P10  Base54484751
No. Weeks4444
YTD Periods111010
YTD Weeks444343
P11  Base60515256
No. Weeks4444
YTD Periods221111
YTD Weeks884747
P12  Base66545761
No. Weeks5555
YTD Periods331212
YTD Weeks13135252

 

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


Viewing all articles
Browse latest Browse all 2812

Trending Articles