sum from different band

Stimulsoft Reports.NET discussion
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

sum from different band

Post by nezarabd »

i want to caculate like that from two bound

{CountIf(DataBand1,DataSource1.kind == "male" & DataSource1.End_natiga == "success")}
and
{CountIf(Datadoor2,door2.kind == "male" & door2.nati == "success")}

it's work ok

but when i want to sum them like

{CountIf(Datadoor2,door2.kind == "male" & door2.nati == "success") + CountIf(DataBand1,DataSource1.kind == "male" & DataSource1.End_natiga == "success")}

the part after + sign get coreect
put the part before + sign get me zero

i didn't know why

thanks for help me in advance
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: sum from different band

Post by HighAley »

Hello.

You make calculations on different bands.
Where do you us the last expression? It seems that you use simple CountIf expression in the corresponding band, but the expression with Sum of CountIf can not be calculated in the component where you use it.
Could you send us a sample project with data to reproduce the issue?

Thank you.
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: sum from different band

Post by nezarabd »

but when i use it alone it work
and when i sum
not work
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: sum from different band

Post by Alex K. »

Hello,

Please send us a sample report with test data which reproduce the issue for analysis.

Thank you.
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: sum from different band

Post by nezarabd »

is it matter who the databand before and after
when i try to change the order of databand
the sum calculate the databand whose before the another
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: sum from different band

Post by nezarabd »

the report
Attachments
statistics_door2.mrt
(69.34 KiB) Downloaded 448 times
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: sum from different band

Post by nezarabd »

55555555555555555555.jpg
55555555555555555555.jpg (171.12 KiB) Viewed 3313 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: sum from different band

Post by Alex K. »

Hello,

Can you please send us a test data for your report.

Thank you.
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: sum from different band

Post by nezarabd »

i sent all data because it complex
Last edited by nezarabd on Wed Aug 12, 2015 11:30 pm, edited 1 time in total.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: sum from different band

Post by Alex K. »

Hello,

Thank you for the sample. We need some additional time for check the issue.

Thank you.
Post Reply