Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
when i compute using Sum(Amount) it return amount =-1,505,155.9
But when i using below expression :-
ADD RATE FOR GL TABLE
=
RangeSum(
Above(
RangeSum(
Above(
Sum({<year, month>}[Amount]*-1), 0, RowNo()))),
-
Sum(TOTAL Aggr(Sum({<year, month>}[Amount]*-1),
YearMonth)))
Now it return -361,237,416 , How to make it return 1,505,155.9 ?
Paul
Hi,
I'm not really clear what you're trying to do there, but if you remove TOTAL from this expression
Sum(TOTAL Aggr(Sum({<year, month>}[Amount]*-1),
YearMonth)))
it'll return -1,505,155.9
hI nHU nGO
Thank you for your sharing , but then previous month amount wrong. Previous month should be 1.4 million, Now return zero.
Paul
May I ask what are you trying to achieve there? i'm not clear about your requirement yet.
Hi Nhu Ngo
My issue is i need to get the LY Amount using below expression :-
(RangeSum(Above(RangeSum
(Above(
Sum
(
{
<
year, month, $(ColumnDim801)={$(ColumnDim801)}
>
}
[Amount]/1000), 0, RowNo()))),
-
Sum(
{
<
$(ColumnDim801)={$(ColumnDim801)}>
}
TOTAL Aggr(Sum(
{
<
year, month, $(ColumnDim801)={$(ColumnDim801)}
>
}
[Amount]/1000), YearMonth
))))
See my Enclosed QV Doc.
Paul
Hi Paul,
Sorry it's still not clear to me. So you want to get LY amount by using your expression. But that expression doesn't return value correctly, is that right? Can you explain what that expression means. Is that accumulate stock?
Also, you mentioned if remove TOTAL then Previous month amount is 0? can you send me screenshot?