I want guidance on using the Count and CountDistinct

Stimulsoft Reports.JAVA discussion
Post Reply
TecnologiaMV
Posts: 53
Joined: Mon May 30, 2022 7:35 pm

I want guidance on using the Count and CountDistinct

Post by TecnologiaMV »

I want guidance on using the Count and CountDistinct functions to filter and count a specific record in a column. For example: {CountDistinct(MV.TP_OCUPACAO, "V")}. I would like to count how many "V" records there are in the "MV.TP_OCUPACAO" column.
Attachments
Screenshot_704.png
Screenshot_704.png (59.93 KiB) Viewed 1092 times
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: I want guidance on using the Count and CountDistinct

Post by Lech Kulikowski »

Hello,

In this case, you should use the following expression:
{CountDistinctIf(DataBand,DataSource.Column, condition)}

Thank you.
Post Reply