Dear Support,
I am creating a KPI visual card. However, according to the attached picture, the number should be negative, but it is not the case.
Could anyone enlighten me on what I’m doing wrong?
calculated field script
ifelse(
{yhat_IsInLast12Months_param} = 1,
sumOver(ifelse({yhat_IsInLast12Months_param} = 1, yhat, 0), [{yhat_IsInLast12Months_param}], PRE_AGG),
ifelse(
{yhat_IsInLast24Months_param} = 1,
sumOver(ifelse({yhat_IsInLast24Months_param} = 1, yhat, 0), [{yhat_IsInLast24Months_param}], PRE_AGG),
0
)
)
Best,

