Distinct Count in FastReport

edited 11:16AM in FastReport 4.0
Does anyone know how to make a distinct count in fastreport? Example I have the report:

Name sex number
Jo??o m 2
Jo??o m 5
Maria f 8

In the normal count, the result would be 3, but I want one that takes only the number of rows that do not repeat the field name . In this case, the result would be 2. Can anyone help me? That's just an example. I can not do a group by in SQL because I have several fields.

Thanks

Comments

  • gpigpi
    edited 11:16AM
    Try to use TStringList in the script. Add new items to the list and then get TStringList.Count

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.