many to many relationship
Posted: Wed Aug 07, 2013 2:43 pm
Hi,
is it possible to imagine a many to many relationship in TM1?
For example, i have a incident fact table and a time and status dimension table. The relationship between incidents, time and status allows storing the state of every incident and for every month. And an incident can have several states assigned for a month.
The result is that i have the same incident_id multiple times in the fact table. (differently then in an ordinary star schema)
I can count the distinct number of incidents for every data point with following rule:
['number_incidents'] = C:ConsolidatedCountUnique( 0, 'Incident', '', 'All_Incidents', !Status, !Time, 'number_incidents');
But if there is measure at basis of an incident_id i am out of ideas howto handle aggregation with this ...
What are doing if u get a 'many 2 many' requirement to reproduce in TM1? Is there a way or is TM1 not the right tool?
Best regards!
is it possible to imagine a many to many relationship in TM1?
For example, i have a incident fact table and a time and status dimension table. The relationship between incidents, time and status allows storing the state of every incident and for every month. And an incident can have several states assigned for a month.
The result is that i have the same incident_id multiple times in the fact table. (differently then in an ordinary star schema)
I can count the distinct number of incidents for every data point with following rule:
['number_incidents'] = C:ConsolidatedCountUnique( 0, 'Incident', '', 'All_Incidents', !Status, !Time, 'number_incidents');
But if there is measure at basis of an incident_id i am out of ideas howto handle aggregation with this ...
What are doing if u get a 'many 2 many' requirement to reproduce in TM1? Is there a way or is TM1 not the right tool?
Best regards!