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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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