Conditional count in group header band

Stimulsoft Reports.NET discussion
Post Reply
dcleyne
Posts: 10
Joined: Wed Aug 18, 2010 9:12 pm
Location: Melbourne

Conditional count in group header band

Post by dcleyne »

If I wanted to put a count in a group header band, I would usually use something like

{Count(GroupHeaderBand0)}

that gives me a count of the records inside that Group Header Band

If I wanted to do a conditional count of the records so that I only got counts for specific values what would I do?

The documentation talks about CountIf. Could I use something like:

{CountIf(GroupHeaderBand0, ???)}

Cheers,
Dan
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Conditional count in group header band

Post by Alex K. »

Hello,

You can use next expression {CountIf(Band,Condition)}

for example
{CountIf(GroupHeaderBand1,Products.UnitPrice < 20)}

Thank you.
dcleyne
Posts: 10
Joined: Wed Aug 18, 2010 9:12 pm
Location: Melbourne

Conditional count in group header band

Post by dcleyne »

Thanks Aleksey!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Conditional count in group header band

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.

Thank you.
newbie
Posts: 1
Joined: Wed Jan 18, 2017 4:13 am

Re: Conditional count in group header band

Post by newbie »

Hi Aleksey,

How to count in the group header band which has data more than 1 page?

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Conditional count in group header band

Post by Alex K. »

Hello,

Please try to use Totals.Count() function.

Thank you.
Post Reply