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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

multiple average lines in a line chart

Hi all,

I try to add two aberage lines in below line chart.

One for 2021, the other for 2022

Any tips how I can do that?

Thanks!

 

Capture.PNG

 

1 ACCEPTED SOLUTION
goncalogeraldes
Super User
Super User

Hello there @Anonymous ! You can add multiple average lines in the "Analytics" Pane of a visual. Nevertheless, in your case you would need to create two separate measures (one with a filter for 2021 and another for 2022) and use them as a reference for your average lines. Alternatively, you can just add two card visuals with a measure for your average and filter each one for each year.

 

goncalogeraldes_0-1648208476372.png

 

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @goncalogeraldes 

thanks for advise, was able to fix it

Have a good weekend.

John

@Anonymous Can you let me know how you fixed this as I want to do something similar? Thanks.

goncalogeraldes
Super User
Super User

Hello there @Anonymous ! You can add multiple average lines in the "Analytics" Pane of a visual. Nevertheless, in your case you would need to create two separate measures (one with a filter for 2021 and another for 2022) and use them as a reference for your average lines. Alternatively, you can just add two card visuals with a measure for your average and filter each one for each year.

 

goncalogeraldes_0-1648208476372.png

 

Hope this answer solves your problem!
If you need any additional help please @ me in your reply.
If my reply provided you with a solution, please consider marking it as a solution ✔️ or giving it a kudoe 👍
Thanks!

You can also check out my LinkedIn!

Best regards,
Gonçalo Geraldes

 

@goncalogeraldes Can you advise how to create measures with the years as filters? Thanks.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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