Hello Community,
I am newbie in CDS and I don't have very clear how to build a star join model. I'm working with HANA SPS10.
Guess that we have three tables, for instance Customers, Sales and Date. Customers associated to their sales, and every sale associated with the date that it was sold.
- Customer:
- CustomerId : Integer;
- CustomerName: String(50);
- Date:
- DateId :Integer,
- Monthname: String(10);
- Year: String(4);
- ....
- Sales:
- Price: Double;
- Quantity: Integer;
- CustomerId: Integer;
- DateId: Integer;
In the case of Date Dimension I want to reuse it in another star models and preferably the customer dimension too.
I want that analytical model be consumed by Design Studio, Analysis for Office and the rest of analytical tools.
These dimensions are CDS entities, but How I have to define the relations between entities? Associations in the same CDS context? How I define a calculation view that use that context? Or Is better in terms of reusing the date dimension to have a calculation view for each entity and after that define another calculation view to define the relations between them?
A bunch of questions as you can see.
Regards.
Alvaro.