Skip to main content

Hello !

I am trying to display the number of cases with a change activity on a monthly basis (ROUND_MONTH("_CEL_O2C_ACTIVITIES".EVENTTIME)).

Without this column I obtain the right numbers but as soon as I display the column, numbers increase.

To made sure I have a analysis filter on 2018-01. Without the month column I have:

image1046404 13.6 KB

When I put the column I have:

image1066365 14.5 KB

Does that come from the PU function that does not handle well event time?

The forumla for Change Rate Case is

COUNT(

CASE

WHEN PU_COUNT(VBAP,"_CEL_O2C_ACTIVITIES".ACTIVITY_EN,"_CEL_O2C_ACTIVITIES".ACTIVITY_EN IN (<%=changedFields%>)) > 0

THEN 1.0

ELSE NULL

END

)

Thank you in advance

EDIT

The problem comes from using _CEL_O2C_ACTIVITIES.EVENTTIME. Using the sales order creation date gives me what I want.

Hi @antoine.torri,

 

this is related to the different levels looking at the data. The eventtime is activity related, SO creation date is case related. You have to make sure to stick to the same levels. We frequently see this challenge when using a PU-function combined with a time dimension. Were you already able to solve the issue?

 

Best,

 

Justin


@antoine.torri You can try using ROUND_MONTH(PU_FIRST(VBAP,

"_CEL_O2C_ACTIVITIES".EVENTTIME, "_CEL_O2C_ACTIVITIES".ACTIVITY_EN IN (<%=changedFields%>))) to get the timestamp of the first change activity per case. This should solve the increasing numbers problem.

 

Best

Kevin


Hi Antoine,

Add as dimension ROUND_MONTH("_CEL_O2C_ACTIVITIES".EVENTTIME)and as KPI Count cases affected with changes

COUNT(DISTINCT

CASE WHEN "_CEL_O2C_ACTIVITIES".ACTIVITY_EN IN (<%=changedFields%>)

THEN "_CEL_O2C_ACTIVITIES".CASE_KEY ELSE NULL END

)

The KPI will count unique Sales order Items that had an associated changed activity per month of occurrence.

 

Best,

Gabriel


Reply