Forum Discussion
jaydesai28
8 years agoFrequent Visitor
ALLEXCEPT function does not work with filter
I want to calculate the average report execution time per report. I created measure for average execution time. AverageExecutionTime = CALCULATE(AVERAGE('Long Running Report'[TotalTime]),ALLEXCEP...
- 8 years ago
Hi jaydesai28,
Based on your data here, you can just remove the context of "TotalTime".
AverageExecutionTime = CALCULATE ( AVERAGE ( 'Long Running Report'[TotalTime] ), ALL ( 'Long Running Report'[TotalTime] ) )Or you can add the context of ReportPath to your formula.
AverageExecutionTime 2 = CALCULATE ( AVERAGE ( 'Long Running Report'[TotalTime] ), ALLEXCEPT ( 'Long Running Report', 'Long Running Report'[ReportName], 'Long Running Report'[ReportPath] ) )Best Regards,
Dale
v-jiascu-msft
8 years agoMicrosoft Employee