Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

Object key awareness on Date object

$
0
0

Hello,

 

(System : SAP BI 4.1 SP3p4 on Win, Information Design Tool)

 

I am facing a strange behaviour when setting up Object Keys in my Universe.

 

Say I have this in my DFX:

  • T_Calendar (PK_CALENDAR, Datevalue, ...)
    • PK_Calendar is set as a PK in T_Calendar (and the DB).
  • T_Dimension (PK_DIMENSION, Name, ...)
    • PK_Dimension is set as a PK in T_Dimension (and the DB).
  • F_Fact (FK_CALENDAR, FK_DIMENSION, other info...)
    • FK_Calendar and FK_DIMENSION are set as a FK in F_Fact (amongst other fields).

 

 

And in my BLX :

  • Object "Date"
    • Mapped to T_Calendar.datevalue as a Date
    • Object Keys set as follows :
      • PK on T_CALENDAR.PK_CALENDAR
      • FK on F_Fact.PK_CALENDAR
  • Object "Name"
    • Mapped to T_Dimension.Name as a String
    • Object Keys set as follows :
      • PK on T_Dimension.PK_DIMENSION
      • FK on F_Fact.FK_DIMENSION

 

 

When I see how the query is generated, the key awareness only works for T_Dimension, but not for T_Calendar, meaning that if I have a prompt on Name, it will directly use the FK in the fact table. But it is not doing the same when I prompt on my date, it uses the value instead of the key.

 

I obviously want it to use the key instead of the value, for performance reasons. Any way to achieve that?

 

I hope I am clear enough in my description.

 

Regards,

Sylvain.


Viewing all articles
Browse latest Browse all 1291

Trending Articles



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