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

How to self-join within an Analytic View?

$
0
0

I have a need to perform a self-join, and would like to do it within my Analytic View but the system won't let me. Is there a way around it?

 

My scenario much more complex than this example, but the concept is the same

ex: Fact.Date -> Calendar1.Date, Calendar1.PrevWeekNum -> Calendar2.WeekNum.

This logic is used to split my sales data across weeks within a Calculation View. Currently Calendar2 is joined within the CV but I'd rather push it down inside the AN. I know I can do it with an AT at the logical join level, but it's inelegant/kludgy and should be part of the foundation.

 

ERROR:

Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:exception  1: no.8104012  (mdx/metadata/deployment/join/JoinManager.cpp:471)n Self-join detected for table MYSCHEMA:TABLE123A

 

Any thoughts are appreciated.

 

--thanks,


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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