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

Webi Count based on runningsum

$
0
0

Hi experts,

Need your help in resolving this scenario.

Following is my transaction data

TypeProductMonthOutstanding Amount
XAJan10
XAFeb10
XAMar-10
XBFeb30
XBMar-30
YCFeb50
YCMar-50

 

Firstly, I need to get "outstanding amount as at" each period for each product.

Thus I am using formula: runningsum([amount];([product])) to get my result. It works fine.

 

ProductJanFebMarApr
A10201010
B03000
C05000

For Product A, outstanding amount as at Feb is 20

For Product A, outstanding amount as at Mar is 10 (10+(-10))

For Product A, outstanding amount as at April is remains 10 (due to no transaction happens)

and so on...

 

My problem is how do I get count those product having "outstanding amount as at" greater than 0?

Count by TypeJanFebMarApr
X1211
Y0100

For eg: Type X,

As at Feb, there are two products (product A,B) are having outstanding amount greater than 0.

As at Mar, only one product (product A) having outstanding amount greater than 0

 

For eg: Type Y,

As at Feb, one product (product C) having outstanding amount

As at Mar and Apr, no product having any outstanding amount

 

I tried to use count([product]) where (runningsum([amount];([product])))>0, but couldn't give me a correct result.

 

Anyone has solution on this?

 

Many many thanks.


Viewing all articles
Browse latest Browse all 5402

Trending Articles



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