Skip to main content
Solved

Hello All, I am trying to get a KPI PQL statement for SAP field KDATE(Date) when the date in the field = 9999-12-31 Has anyone done PQl statements like this before? Thanks for your help in inadvance

  • June 18, 2024
  • 2 replies
  • 7 views

Hello All, I am trying to get a KPI PQL statement for SAP field KDATE(Date) when the date in the field = 9999-12-31 Has anyone done PQl statements like this before? Thanks for your help in inadvance

Best answer by rodrigo.aladr11

Hello, yes, you can achieve that in Celonis.

 

I am not fully sure what information exactly you want to achieve but probably one of this 2 possibilities will solve the issue:

 

Imagine you want to get the number of cases where KDATE = 9999-12-31

 

-> using CASE WHEN: Here, the case when will work exactly like in SQL and iterate only by those cases that comply with the condition KDATE = 9999-12-31 SUM(case when "EKPO"."KDATE" = '9999-12-31' then 1 else 0 end)

 

-> using a Component Filter: Here you can create a KPI that displays the number of cases (PQL: COUNT_TABLE("EKPO")) and then add a filter on top so that only those with EKPO.KDATE = 9999-12-31 appear (PQL: FILTER "EKPO"."KDATE" = '9999-12-31')

2 replies

Forum|alt.badge.img+6
  • Level 0
  • 24 replies
  • Answer
  • June 23, 2024

Hello, yes, you can achieve that in Celonis.

 

I am not fully sure what information exactly you want to achieve but probably one of this 2 possibilities will solve the issue:

 

Imagine you want to get the number of cases where KDATE = 9999-12-31

 

-> using CASE WHEN: Here, the case when will work exactly like in SQL and iterate only by those cases that comply with the condition KDATE = 9999-12-31 SUM(case when "EKPO"."KDATE" = '9999-12-31' then 1 else 0 end)

 

-> using a Component Filter: Here you can create a KPI that displays the number of cases (PQL: COUNT_TABLE("EKPO")) and then add a filter on top so that only those with EKPO.KDATE = 9999-12-31 appear (PQL: FILTER "EKPO"."KDATE" = '9999-12-31')


  • Author
  • Level 5
  • 10 replies
  • July 12, 2024

Thank You