Aggreration of calculated field

Hi,
I want to perform an aggregation on a table with a calculated field.
For example the following table:

unit retests
1 1
2 5
3 4
4 1
5 1
6 1
7 1
8 2
9 3
10 5

The “unit” column is an ID and the retest column is calculated field based on some logic.

The desired result is sum of the retest column, that is:

retest sum
1 5
2 1
3 1
4 1
5 2

Is it possible?

Thanks!

Hi @PninaBarak,

Using your sample data above I have created a table which achieves your outcome. You need to create a table using retest as your group by and retest again as your value but using count as the aggregate. More information is available in the below screenshot:

I am marking this reply as, “Solution,” but let me know if you have any questions or would like the above clarified in more detail.

1 Like

Thanks @olivia !
I tried this but I get the following error:
“custom aggregation field is not allowed as a dimension”

I’m using distinct_countIf function in the calculated field.

Hello @PninaBarak and @olivia !

@PninaBarak were you able to find a solution to this or was @olivia 's comment above helpful? If so could you either post the your solution or mark their comment as the solution to help the community?

My suggestion here would be not to use distinct_countif to achieve this and only use the count function.

Hello @PninaBarak and @olivia !

It has been some time since we have heard from you but we would still like to help find a solution.

If there is no activity on this thread in 4 days this topic will be archived.