Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Folks,
Below is my condition for the Net cal:
Formula:
If MSEG-SHKZG = H, MSEG-DMBTR is negative (i.e. MSEG-DMBTR is 9.207,87 the value to calculate with is –9.207,87)
If MSEG-SHKZG = S, MSEG-DMBTR is positive
Get for each entry selected MSEG-DMBTR and convert to either negative or positive value.
Calculate the converted values to a net total.
I'm trying for something like below for the Calculation :
if(Debit_Credit_Indicator='H',- sum(Amt_Local_Curr), if(Debit_Credit_Indicator='S',sum(Amt_Local_Curr)))
Any suggestions to calculate in the best way???
Thanks,
AS
Avoid calculating the sum twice with:
=Sum(If(Debit_Credit_Indicator='H', -1, 1) * Amt_Local_Curr)
Hi,
Please see the attached file.
This is what you are looking for?
can remove 2 nd if right?
if(Debit_Credit_Indicator='H',- sum(Amt_Local_Curr),sum(Amt_Local_Curr))
Kush,
In ur case output should be +500 not -300.
Thanks,
AS
Avoid calculating the sum twice with:
=Sum(If(Debit_Credit_Indicator='H', -1, 1) * Amt_Local_Curr)
Yes for sure you can do this.
Thanks,
AS
Hi,
Try like this using set analysis
=-sum({<Debit_Credit_Indicator={'H'}>} Amt_Local_Curr) + sum({<Debit_Credit_Indicator={'S'}>}Amt_Local_Curr)
Hope this helps you.
Regards,
Jagan.
Thanks Jonathan!
looks to me this is right approach.
Thanks,
AS
Thanks Jagan