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

aggr?

Hi,

can you please help?

I have data as follows:

Category     Id

A               1

B               2

C               3

A               4

B               5

C               3

C               6   

A               1


How to calculate in as a KPI that we have two ids with the same category (A - 1 and C -3)?

Many thanks for suggestion

Tommy

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Or if you need to check this, maybe

Sum( Aggr( If( Count(Id)>=2, 1,0), Id, Category))

View solution in original post

4 Replies
vinieme12
Champion III
Champion III

what do you want to calculate?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
swuehl
MVP
MVP

Maybe something like

=Count({<Id = {"=Count(Id)>=2"}>} DISTINCT Id)

This will not check if the category is the same, just checking if there are multiple assignments for the same Id.

swuehl
MVP
MVP

Or if you need to check this, maybe

Sum( Aggr( If( Count(Id)>=2, 1,0), Id, Category))

Not applicable
Author

This is what i needed, thanks so much.