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