Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

How to distribute properly with HANA PAL analysed data into BPC Fact Table by using sql

$
0
0
Some preliminary details to system versions:

BW 7.4 on HANA 1.00.090

BPC 10.1

EPM Client 10.0 SP 20

 

 

Hi HANA PAL and BPC Experts,

 

I have a question regarding sql-implementation for distributing of analysed data with PAL-Function into the Fact_Table.

 

So, I am working on prototypic implementation of business planning with HANA PAL. I am basically taking the planning data and making predictions with time series method - in my case double exponential smoothing.

 

All works so far, but at the end I would like to distribute results from RESULT_TABLE into the the fact table and match die information with time attribute in fact table. For this purpose I wrote the following SQL code:

 

 

INSERT

INTO "FACT_TABLE" SELECT

  0 AS "KEY_ATTRIBUTE",

  1149 AS "PRODUCT_ATTRIBUTE",

  5186 AS "CUSTOMER_ATTRIBUTE",

  19 AS "ACCOUNT_ATTRIBUTE",

  3 AS "CATEGORY_ATTRIBUTE",

  23 AS "DATASOURCE_ATTRIBUTE",

  SID AS "TIME_ATTRIBUTE",

  VALUE AS "SDATA"

 

FROM (SELECT

  *

  FROM "RESULT_TABLE"

  INNER JOIN (SELECT

  "TIME_ATTRIBUTE",

  "/B28/S_D5P1U9U"

  FROM "SAPBW3"."M_TIME_TABLE") AS timeproperty

  ON "TIME_ATTRIBUTE" LIKE timeproperty."/B28/S_D5P1U9U"

  INNER JOIN (SELECT

  *

  FROM "SAPBW3"."/B28/R_TIME_TABLE") AS timeid ON timeproperty."TIME_ATTRIBUTE" = timeid."TIME_ATTRIBUTE");

 

But unfortunately all predictions appear in TIME_ATTRIBUTE with SID = 0. Therefore I can't see all those predictions in my EPM Excel Client.

 

Unbenannt.PNG

 

I hope my question and explanation is not confusing.

 

Thanks in advance


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>