Help with condition in Report summary totals

Stimulsoft Reports.Silverlight discussion
Locked
Zaily
Posts: 6
Joined: Wed Nov 25, 2015 2:14 pm

Help with condition in Report summary totals

Post by Zaily »

hello guys, im trying to put in one text box, which will sum up the qsdok.mnozstvi for substring(qsdok.pracoviste)1,2 lower than 3 (i have pracoviste 1, 2 and 3)
(without substring the pracoviste is like M1, M2, M3)
but i still get error in my code..

{SumIf(qsdok.MNOZSTVI, substring(qsdok.pracoviste)1,2 < 3}

What is right interpretation of my condition?

Or the other solution could be, if I can somehow make one of the group headers with data condition substring(qsdok.pracoviste)1,2 < 3
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Help with condition in Report summary totals

Post by Alex K. »

Hello,

Please try to use the following expression:

Code: Select all

{SumIf(qsdok.MNOZSTVI, int.Parse(Substring(qsdok.pracoviste,1,2)) < 3)}
Thank you.
Zaily
Posts: 6
Joined: Wed Nov 25, 2015 2:14 pm

Re: Help with condition in Report summary totals

Post by Zaily »

Thank you so much, this is it! :)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Help with condition in Report summary totals

Post by Alex K. »

Hello,

We are always glad to help you!

Thank you.
Locked