URGENT How can i count only once the rows with same id? URGENT

My report exhibits the total rows existing in a group, like the example below

NAME | CLIENT_ID | PRODUCT |
john     |        100        |   spoon         |
--------------------------------------------
mary    |        111        |    dress         |
-------------------------------------------
john     |        100        |   pan            |
-------------------------------------------
Total Rows: 3

How can i count only once the rows with the same id and display it in the report? example below

NAME | CLIENT_ID | PRODUCT |
john     |        100        |   spoon         |
--------------------------------------------
mary    |        111        |    dress         |
-------------------------------------------
john     |        100        |   pan            |
-------------------------------------------
Total Rows: 2
 

figueiredo.lucas779's picture
Joined: Jun 17 2022 - 11:46am
Last seen: 5 months 3 weeks ago

Thank you jgust!!

figueiredo.lucas779 - 5 months 3 weeks ago

1 Answer:

Create a variable with a class type of integer and a "Distinct Count" calculation.

In the expression add the field you would like a distinct count of.

Finally, create a text field on the canvas to display the value of the expression.

 

jgust's picture
5419
Joined: Jun 10 2010 - 6:39am
Last seen: 2 days 6 hours ago
Feedback
randomness