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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
clem312
Resolver I
Resolver I

Line Chart - Industry average per year

Hi,

 

I made a line chart for several brands and with year on axis level.

I need to add an average line for automotive industry (all brands selected) on this graph per year.

As I put the brand in legend, I don't see how to make it. Any idea ?

 

I draw it in black on this example :

clem312_0-1623317910528.png

 

2 REPLIES 2
clem312
Resolver I
Resolver I

Hi @v-henryk-mstf,

 

Thank you for answering. Unfortunately I cannot do that as Ford, Renault and Peugeot are values of column BRAND.

Data are as below :

Capture d’écran 2021-06-16 095109.png

 

Best regards

 

Clement

v-henryk-mstf
Community Support
Community Support

Hi @clem312 ,

 

I did a test, and the reference is as follows: You can create a measure or calculated column to find the average value in different years. Then put it in the "value" in the line visual.

M_avg = (MAX('Table (2)'[Ford])+MAX('Table (2)'[Peugeot])+MAX('Table (2)'[Renault]))/3
Average = ('Table (2)'[Ford]+'Table (2)'[Peugeot]+'Table (2)'[Renault])/3

v-henryk-mstf_0-1623650144255.png

v-henryk-mstf_2-1623650256132.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.

Best Regards,
Henry

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.