Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to compute GL CODE from 50055 till 50057

Hi All

I try :-

>=50055 and <=50057

into below expression :-

Money(RangeSum(
Above(RangeSum(Above(Sum({<year, month, GL_CODE = {>=50055 and <=50057}>}[Amount]*1), 0, RowNo()))),
-Sum({<GL_CODE = {>=50055 and <=50057}>}TOTAL Aggr(Sum({<year, month, GL_CODE = {>=50055 and <=50057}>}[Amount]*1), YearMonth)))
, $(vMoneyFormatK_GL))

it return zero.

Paul

1 Solution

Accepted Solutions
sunny_talwar

Try this:

Money(RangeSum(

Above(RangeSum(Above(Sum({<year, month, GL_CODE = {">=50055<=50057"}>}[Amount]*1), 0, RowNo()))),

-Sum({<GL_CODE = {">=50055<=50057"}>}TOTAL Aggr(Sum({<year, month, GL_CODE = {">=50055<=50057"}>}[Amount]*1), YearMonth)))

, $(vMoneyFormatK_GL))

View solution in original post

2 Replies
paulyeo11
Master
Master
Author

my QVF

sunny_talwar

Try this:

Money(RangeSum(

Above(RangeSum(Above(Sum({<year, month, GL_CODE = {">=50055<=50057"}>}[Amount]*1), 0, RowNo()))),

-Sum({<GL_CODE = {">=50055<=50057"}>}TOTAL Aggr(Sum({<year, month, GL_CODE = {">=50055<=50057"}>}[Amount]*1), YearMonth)))

, $(vMoneyFormatK_GL))