Forum Discussion
Anonymous
9 years agoNot applicable
Average line
Hello, Within a line chart in Power BI you have the ability to add an Average Line. I am interested to know how I would calculate this within a measure. I am looking to be able to display average...
- 9 years ago
Hi Anonymous,
You could refer to below DAX formula to calculate the Average measure:
Average = CALCULATE ( SUM ( Table_Name[expenses value] ), ALL ( Table_Name ) ) / CALCULATE ( DISTINCTCOUNT ( Table_Name[Month column] ), ALL ( Table_Name ) )Regards,
Yuliana Gu
v-yulgu-msft
9 years agoMicrosoft Employee
Hi Anonymous,
Have you achieved your requirement with my original advice? If so, please kindly mark the corresponding reply as an answer so that others having similar concern can find the solution more easily. If you still have any question, please feel free to ask. Thanks for your understanding.
Regards,
Yuliana Gu