Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

Need help to define variable in WEBI on runnig count

$
0
0

Hi,

 

I have a WEBI report in which I bring in Delivery data for 2015 for a Shipto party and Material combination as shown in the screen shot.

As you see deliveries happened only in 4 months, Feb, June, Sep and Nov.

 

I want to know what was the max count of consecutive months when no sale happened for this shipto/mat combination.

 

So If I work it out manually as in the lower part of the screen shot, if I start counting from Jan 2015, you see count 3 to be max and that means max of 3 months there was no sale to this customer. I am trying to mimic here Running count where when there is no delivery qty for the month my counter continues and when it sees a delivery qty the counter resets to zero. Then again it starts counting from next month.

 

How do I achieve this in WEBI via formula/variable etc.

 

Note : The data fetched by this query is bringing in only 4 months of data as there are deliveries only for those 4 months.

 

Any help on this is appreciated.

 

running_count.jpg

Thanks

Lak


Viewing all articles
Browse latest Browse all 5402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>