Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Ruz
Regular Visitor

Creating an Average Line within a line chart

Hi

 

I have a Line Chart with setup suc that Month as the x-axis, year as the legend, and my values with many data points averaging on the y-axis as below.  I want to add a line to this chart where I average by the month to show a trend. What measure could I use to add that line? 
If it is not possible, alternatively I am looking for average to appear on tooltip like below.

 

Ruz_0-1707893011199.png

 

Thanks

Ruz

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Ruz ,
To add a line to the chart to show the average value by month, you can create a new metric to calculate the average of each monthly value.

Avg =
AVERAGEX ( GROUPBY ( 'Table', 'Table'[Month] ), AVERAGE ( 'Table'[Values] ) )

Final output:

vyifanwmsft_0-1707964745454.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Ruz ,
To add a line to the chart to show the average value by month, you can create a new metric to calculate the average of each monthly value.

Avg =
AVERAGEX ( GROUPBY ( 'Table', 'Table'[Month] ), AVERAGE ( 'Table'[Values] ) )

Final output:

vyifanwmsft_0-1707964745454.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors