cube - (SSAS) Need to use the total of a calculated measure in other calculations irrespective of - whether they qualify or not -


i have dimension categorizes labor direct , indirect have measure [indirect hours] comes indirect employees , others remain blank. , measure [direct hours] comes direct employees , others remain blank.

i want create calculated measure [indirect hours]/[direct hours] , show in front of direct employees.

currently showing blank there. appreciated

edit:

 labortype  |   directhrs   |   indirecthrs | calculation_expected   direct         10              <blank>         (1+2+3+4)/10=1   direct         20              <blank>         (1+2+3+4)/20=0.5   direct         30              <blank>         (1+2+3+4)/30=0.33   direct         40              <blank>         (1+2+3+4)/40=0.25   indirect       <blank>             1           <blank>   indirect       <blank>             2           <blank>   indirect       <blank>             3           <blank>   indirect       <blank>             4           <blank> 

if table edited , put post correct, use calculation below:

create member currentcube.[measures].[calculated member]  case when isempty([measures].[directhrs]) null else ([measures].[indirecthrs],[dimensionname].[labortype].[indirect]) / [measures].[directhrs] end;   

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -