Forum Discussion
average line
- 9 years ago
What you could do is to create the following measure which will then create the line across your dataset
Average Line = CALCULATE ( DIVIDE ( SUM ( '0426'[Update Rate] ), COUNTROWS ( '0426' ) ), ALL ( '0426' ) )And here is what it looks like once completed
And here is the updated file here: https://1drv.ms/u/s!Apxn-69XhcAmhqsVDkaulZTJN9sztA
Hi GilbertQ,
Thanks for the workaround, I got the same value on the Average Line by creating a measure as (Measure = SUM('TREP_0426 updatestotalRatePerSe'[Update Rate])) and select this measure when adding Average Line.
- liping_qin9 years agoNew Member
Hi GilbertQ,
This time I got an average line of value 137, still not the expected 140.10, not sure what's wrong with the Average Line function.
And here's the sample data you could used to reproduce the issue.
https://1drv.ms/u/s!Auczg22cCvWx1wlvMZJGet7EOFz1
We tried a sample of 20 data points with one point's value as 0, the value of Average Line is the same as that calculated by Excel Average function.
Not sure if our issue is caused by large number of data points.
- GilbertQ9 years agoSuper User
Hi liping_qin
Thanks for the link but I cannot extract it from the GZ format.
Is it possible to change to .zip or even upload the PBIX file?
- liping_qin9 years agoNew Member