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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.