Hi Community
Â
I have the following PQL Query as an KPI:
Â
AVG (
 CASE
  WHEN
   MATCH_ACTIVITIES ( NODE 'Proposal Submitted' ] ) = 1
  THEN
    CALC_THROUGHPUT (
     First_OCCURRENCE 'Proposal Stage' ]
     TO
     Last_OCCURRENCE 'Proposal Submitted' ] ,
     REMAP_TIMESTAMPS ( "ACTIVITIES_TABLE_HUBSPOT"."EVENT_TIME" , DAYS )
    )
      ELSE
   'No Proposal was Submitted'
   END)
Â
I would like to have the string value 'No Proposal was Submitted' for the business in thr ELSE statement. I know I can simply replace it with the INT value 0, but I don't want that.
Â
Any help is appreciated 😊
Â
The error reads: Operator requirements are not met. CASE WHEN expression is not compatible with an ELSE case of data type STRING when at least one THEN case is of data type INT
Â
Kind regards,
Sverre Klein
Â
Â