cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can you model a Parent-Child Hierarchy with two Key attributes in the Datasphere?

Marco0
Discoverer
0 Kudos
402

 

Hello,

My issue is that I have two dimensional tables: Project and Costs. Each project has one or multiple cost codes.

Project

Pr_nrattributes
001x
002xx
003xxx

and Cost

Pr_nrCost_CodeDepBudget
001AFI10000
001BCO5000
002BFI8000

My problem is that some attributes can only be identified by the combined key of Cost_Code and Pr_nr. I am a beginner in this field, so my expertise is limited. I considered merging the dimensions and using the combined key as the identifier, but my problem still stands. Due to the combined key, I need to build a parent-child hierarchy.

Any help is much appreciated. Thank you in advance.

Best regards,

Marco

Accepted Solutions (0)

Answers (1)

Answers (1)

Martin_Kuma
Contributor

Hi Marco, 

I was struggling with Cost Element and Company Code. Did not find a solution. The Hierarchy with Directory worked, however I was unable to assign two fields as leafs for the hierarchy self. Means DSP allows only one field to be assigned as a LEAF (lowest level of the hierarchy). Workaround was to concat the compounding key, what did not look nice ... User has to choose the Company Code first, to get the allowed hierarchies. 

Cheers,

Martin