Page 1 of 1

Help with condition in Report summary totals

Posted: Wed Nov 25, 2015 2:19 pm
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

Re: Help with condition in Report summary totals

Posted: Thu Nov 26, 2015 7:21 am
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.

Re: Help with condition in Report summary totals

Posted: Thu Nov 26, 2015 10:17 am
by Zaily
Thank you so much, this is it! :)

Re: Help with condition in Report summary totals

Posted: Thu Nov 26, 2015 10:50 am
by Alex K.
Hello,

We are always glad to help you!

Thank you.