Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How do I count the amount of number of individual references? (See Thread)

I am trying to work out an expression that would count the amount of times a reference appears in a table. An example is shown:

List

HELLO

HELLO

GOODBYE

GOODBYE

GOODBYE

HELLO

GOODBYE

Desired Outcome: Hello: x3    Goodbye: x4

The expressions I have tried are incredibly basic and I'm sure this post may seem borederline stupid for some seasoned devs however I have tried the COUNT and SUM function, as well as the COUNTIF function, but I cannot seem to get the desired outcome.

Thanks and best regards,

Alex BG.

1 Solution

Accepted Solutions
sunny_talwar

You need this in a text box object or table? For table, you can try this

Dimension

List

Expression

Count(List)

For Text Box, you are try this

=Concat(Aggr(List & ': x' & Count(List), List), Chr(10))

Capture.PNG

View solution in original post

5 Replies
avinashelite

1.Add list as dimension

2.Expression

Count(List)

This should work

sunny_talwar

You need this in a text box object or table? For table, you can try this

Dimension

List

Expression

Count(List)

For Text Box, you are try this

=Concat(Aggr(List & ': x' & Count(List), List), Chr(10))

Capture.PNG

Anonymous
Not applicable
Author

Hi Sunny,

Thank you very much for your feedback!

This worked fine!

Best regards,

Alex.

Anonymous
Not applicable
Author

Thanks Avinash

Best regards,

Alex.

avinashelite

Mark the helpful and correct answers and close this thread