Forum Discussion

clem312's avatar
clem312
Resolver I
5 years ago

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 :

 

2 Replies

  • v-henryk-mstf's avatar
    v-henryk-mstf
    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

     


    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.

  • 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 :

     

    Best regards

     

    Clement