Forum Discussion
Anonymous
4 years agoNot applicable
Calculating the Difference between two averages
Hello! I would like to ask you for some advices how to calculate one new measure based on column rebate average%, MSE SD%, Total SD% seperately. Example based on total SD% column: 1. Average f...
- 4 years ago
Hi there,
You can use this approach (see link for file😞Difference compared to average = VAR AverageOfValue = AVERAGE('Table'[Value]) VAR AverageOfTotal = CALCULATE( AVERAGE('Table'[Value]), ALLSELECTED('Table'[Chain]) ) VAR Result = AverageOfValue - AverageOfTotal RETURN ResultUsing ALLSELECTED changes the average at the total row in case only a subset of chains are selected.
If this answers your question, please mark this as a solution.
Regards,
Barna
jdbuchanan71
4 years agoSuper User
Anonymous
Try a measure like this.
Diff =
[Total SD %] - CALCULATE ( [Total SD %], ALLSELECTED ( 'Table'[Chain] ) )