Skip to main content
Question

Hi Folks, I have a use case where it would be easiest solution to use COUNT Statement within the FILTER? However it is not possible. Do you have some tips for me? Thanks. B.

  • January 19, 2024
  • 4 replies
  • 15 views

bunyod.sap
Level 7
Forum|alt.badge.img
Hi Folks, I have a use case where it would be easiest solution to use COUNT Statement within the FILTER? However it is not possible. Do you have some tips for me? Thanks. B.

4 replies

marc.v
Level 2
Forum|alt.badge.img+6
  • Level 2
  • January 19, 2024

Could you give more details about the logic behind the filter? Why is a COUNT needed?


Forum|alt.badge.img+5
  • Level 6
  • January 19, 2024

Unfortunately you cannot filter on a COUNT. You would have to use PU_COUNT instead.

 

Remember that you can filter on cases only. Using COUNT would convert the result into a KPI (single value). This can be used in tables to show count per case. But not in a filter. For filters you need to explicitly classify which cases need to be filtered. For this use PU_COUNT.

 

https://docs.celonis.com/en/pull-up-aggregation.html


bunyod.sap
Level 7
Forum|alt.badge.img
  • Author
  • Level 7
  • January 23, 2024

Could you give more details about the logic behind the filter? Why is a COUNT needed?

Thanks for the reaction. Well, what I am trying to create condition to identify the duplicate values. To do so I am concatenating few fields/conditions and simply count them. If all those conditions are met and after counting there will be more than one concatenated value, then it is duplicate for me.


bunyod.sap
Level 7
Forum|alt.badge.img
  • Author
  • Level 7
  • January 23, 2024

Unfortunately you cannot filter on a COUNT. You would have to use PU_COUNT instead.

 

Remember that you can filter on cases only. Using COUNT would convert the result into a KPI (single value). This can be used in tables to show count per case. But not in a filter. For filters you need to explicitly classify which cases need to be filtered. For this use PU_COUNT.

 

https://docs.celonis.com/en/pull-up-aggregation.html

Thanks for the hint. I managed to get what I wanted partly by applying the FILTER PU_COUNT(DOMAIN_TABLE())..etc. condition. Let's me try applying few more ideas if they will somehow help.