Page 1 of 1

Report Summary's Value op_Div(Decimal Object) Error

Posted: Wed May 05, 2021 11:42 am
by harundemir13
Hello,
I use GroupHeaderBand in the report. I want to get the quantity rate and I show this value in DataBand.
It possible using {colSumRunnig(DATA.quantity)} with GroupHeaderBand and it is not working true value by {Sum(DATA.Quantity)}.
After, I get an error message "There is no matching overloaded method for 'op_Div(Decimal.Object)' when I wrote this formula {IIF(DATA.quantity==0,0,DATA.quantity/colSumRunning(DATA.quantity))}.

In Summary, I want to get quantity rate values for all report quantity values and I can use GroupHeaderBand and I should be able to show rate value in DataBand. How use a formula for quantity rate?
Thank you,

Re: Report Summary's Value op_Div(Decimal Object) Error

Posted: Fri May 07, 2021 2:09 pm
by Lech Kulikowski
Hello,

Please check the following expression:
{(DATA.quantity==0 ? 0 : DATA.quantity/(decimal)colSumRunning(DATA.quantity))}

Thank you.

Re: Report Summary's Value op_Div(Decimal Object) Error

Posted: Tue May 11, 2021 12:32 pm
by harundemir13
Hello,
Thank you for your response, it worked on designer. As I understand colsum function not supported in .net because it didn't work in .net app.
Thank you.

Re: Report Summary's Value op_Div(Decimal Object) Error

Posted: Wed May 12, 2021 8:14 am
by Lech Kulikowski
Hello,

Could you explain your issue in more detail?

Thank you.

Re: Report Summary's Value op_Div(Decimal Object) Error

Posted: Mon May 17, 2021 6:16 am
by harundemir13
Hello,
Colsum function ran in the report with using this {(DATA.quantity==0 ? 0 : DATA.quantity/(decimal)colSumRunning(DATA.quantity))} but this function's use didn't print value in the report when preview .net app.
Thank you.

Re: Report Summary's Value op_Div(Decimal Object) Error

Posted: Mon May 17, 2021 11:09 am
by Lech Kulikowski
Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.

Re: Report Summary's Value op_Div(Decimal Object) Error

Posted: Tue May 18, 2021 7:44 am
by harundemir13
Hello,
I don't send a report but I got the same situation in demo.stimulsoft.com with attachment file
Thank you
NestedGroups.mrt
(289.24 KiB) Downloaded 203 times

Re: Report Summary's Value op_Div(Decimal Object) Error

Posted: Wed May 19, 2021 11:32 am
by Lech Kulikowski
Hello,

Unfortunately, cSum is not implemented in the Interpretation mode. Sorry.

Thank you.

Re: Report Summary's Value op_Div(Decimal Object) Error

Posted: Thu May 20, 2021 6:49 am
by harundemir13
Hello,
Thank you for your response.

Re: Report Summary's Value op_Div(Decimal Object) Error

Posted: Fri May 21, 2021 12:25 pm
by Lech Kulikowski
Hello,

You are welcome.