Forum Discussion
Anonymous
6 years agoNot applicable
Comparing averages to a baseline date
Hello everyone! I want to take some averages that come from a baseline date, then take averages from all other dates and subtract the second one from the first. I have created a formula that is sh...
az38
Community Champion
6 years agoAnonymous
what the statement do you use for [Average Event Time] measure?
Anonymous
6 years agoNot applicable
- az386 years ago
Community Champion
Anonymous
ypur statement looks good enough
didn't your try to debug? whats component is wrong? baselineAverage or currentAverage?
also, try this
AET Difference with Baseline = VAR baselineAverage = CALCULATE(AVERAGEX(FILTER(ALL('Runtime Info'), [Date] = DATE(2020, 04, 03)), [Event Time]) VAR currentAverage = CALCULATE(AVERAGE([Event Time])) RETURN baselineAverage - currentAverage- Anonymous6 years agoNot applicable
it seems that baselineAverage is the one that's off. using the bellow measure I get the following result.
AET Difference with Baseline =VAR baselineAverage = CALCULATE(AVERAGEX(FILTER(ALL('Runtime Info'), [Date] = DATE(2020, 04, 03)), [Event Time]))VAR currentAverage = CALCULATE(AVERAGE('Runtime Info'[Event Time]))RETURNbaselineAverage- az386 years ago
Community Champion
Anonymous
no, baseline is good. it's the same in each rows as expected.
for me this statement also work ok.
please, show your data model more detailed. what columns do you use?