Forum Discussion
Comparing averages to a baseline date
This is what I get. Seeing the total row my guess is that somewhere it the total average of all queries while I want the average of each individual Query.
Anonymous
you've got 7.71 when you tried
RETURN
baselineAverage - currentAverage
?
- Anonymous6 years agoNot applicable
Sorry my bad I forgot to put the current date. This is what I get, which I think is still wrong. If the 3rd of April is the baseline then shouldnt the measure produce 0 on each Query for that date?
- az386 years ago
Community Champion
Anonymous
no. it means you need average by Query and date
so, it shuld look like
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]), ALLEXCEPT('Runtime Info', 'Runtime Info'[Query], 'Runtime Info'[Date])) RETURN baselineAverage - currentAverage - Anonymous6 years agoNot applicable
Unfortunately nothing changed. Still not the correct result. Anyway I believe it is frustrating enough 😛 I shall try out some other stuff to see if they work and if not I'll see what I can do. If you have any other ideas please don't hesitate to port them, or if not thank you anyway for your help and patience!
- az386 years ago
Community Champion
Anonymous
you can share you pbix-file and I will have a look at
- Anonymous6 years agoNot applicable
Unfortunately it contains sensitive data so I can't share it with you. But I really appreciate the gesture!