Need Distinct Count value

Hi,    Here in DB I have some data and I need the total count value with removing the duplicates.  for eg; I have list (A,B,A,C,D,B) and the total count must be 4 not 6. So how to get this distinct count  value.
3 answers

If you can retrieve the data directly from the database, it will only retrieve unique objects. There are some performance benefits when you retrieve a list of objects and use it for an aggregate action only, the aggregate action should be placed directly behind the retrieve action.


In the case you cannot retrieve the list directly from the database, you can use the union list operation to remove any duplicates. Use the list variable for both parameters.


Thank you for your reply. I used it but getting zero value. Is there any mistake that I have done.

Please find below below image for your reference.


Hi, chandra shekar,


You can use OQL Statement. It is quicker.

Documentation :

Demo app where you can play with the Queries.

You have a module for OQL: