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
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
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.