Question

I have a table representing Accidents and a column with Accident Severity ranging from 'Slight' to 'Fatal'. I want to create a measure counting Fatal Accidents depending on other columns on the Accidents table and others (Road Type, Weather Conditions etc.)

What would the calculated member for this measure be and would adding it to a Fact Table consisting of Foreign Keys from all those tables be enough to accomplish what I want?

Était-ce utile?

La solution

Assuming you already have designed

  • a measure Total that counts the accidents
  • a dimension Severity that describes the severity of the accident

you can define a calculated member such as:

([Measures].[Total],[Severity].[Severity].&[Fatal])
Licencié sous: CC-BY-SA avec attribution
Non affilié à dba.stackexchange
scroll top