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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

2 Average lines in clustered column chart

Hello guys,

 

 

I got a clustered column chart and my legend has 2 different values. To make it easy lets just call these possible values "purple" and "red"

Chart.JPG

I would like to have 2 average lines in my column chart. One line for the average of the values that are purple, one for the ones that are red. Like that:

Chart_2.jpg

Unfortunetely, the only average line that is possible to create is for all values together. The only measure that I can select is sum of values. Without a filter.

I hope you kind of understand my problem (sorry for bad english).

 

So, to sum it up, my question is: How do I add an average lines that just use values of one color?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

AFAIK, power bi charts not allow you to use legend fields and multiple value fields at same time.(you can use legend with single value fields or multiple value fields with no legend)

For your scenario, you can consider to create measures based on different legend and use them in value field, then you can simple create analytic average lines based on measures.

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

AFAIK, power bi charts not allow you to use legend fields and multiple value fields at same time.(you can use legend with single value fields or multiple value fields with no legend)

For your scenario, you can consider to create measures based on different legend and use them in value field, then you can simple create analytic average lines based on measures.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.