Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys,
I have the following scenario:
CHALLENGE:
I have created a variable that already handles the item above (vSys.Account.MaxDate)
The formula below is kind of working, but it does not work when I use Period as dimension to check KPI evolution.
Formula rule:
avg({<date = {">=$(vACCOUNT_StartDate)"}>}
aggr(
sum({<date = {">=$(vACCOUNT_StartDate)"}>}
Aggr(
Count({< SOURCE = {"CALL"}, TimeFlag = {1}, KEY_PANEL = P(KEY_PANEL), date = {">=$(vACCOUNT_StartDate)"}> *
< KEY_PANEL = P({< SOURCE={'PANEL'}, date = {$(=$(vSys.Account.MaxDate))} >} KEY_PANEL), TimeFlag={1} >} distinct account)
, Period, employee name))
/
Count({<KEY_PANEL = P({< SOURCE={'PANEL'}, date = {$(=$(vSys.Account.MaxDate))} >} KEY_PANEL), TimeFlag={1} >} distinct account)
,Period, employee name))
This formula seems to work fine, but only if I have some Period selected.
If I don't select any filter, the calculation is wrong. Moreover, If I try to create a chart using Period as dimension, the values are also wrong.
My question is:
Any insight form you guys would be very helpful.
I'm trying to create an app to demonstrate, but couldn't yet, since the data is restrict and the model very complex.
Thank you in Advance.
Rubens Rodrigues