Skip to main content

I'm using a dimension which is based on KPI which contains different tables IDs (e.g: matnr from marc, ebeln from ekpo...) I´m trying to use this dimension whit a KPI (inventory on hand). This KPI is formed the following way:

COALESCE(

  PU_LAST(

    "MARC"

    , "STOCK_HISTORY"."VALU_LBKUM_CON"

    , ORDER BY "STOCK_HISTORY"."EVENTTIME" ASC

  ) -- Ascending order is considered. Hence the result is the last eventtime (and therefore most recent) in the table per Material || Plant.

  ,0.0

).

It is giving me a problem of common table, but I thought that by stablising MARC as the common table with pu_last it would work, as it is working with other KPIs made the same way.

Hope somebody can help me here, thanks

Hello Arturo,

could you please provide some further details about the data model you are working with?

What is the relation between MARC and STOCK_HISTORY and is there a Case Table in-between?

BR Thomas


Reply