cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GunnerJ
Helper V
Helper V

Can't show legend in my line chart

I'm wanting to show a simple line chart that shows the values for each user month after month. Along with those values I want to have a line that shows the average so we can easily see who is over/under performing. My issue is that if I put the names column in the legend space I can't place my average calculation and if I place my average calculation in the values or secondary values space I can't use the legend anymore. Is there a way around this? 

 

In the picture below you can see the visual with the legend in place but the calculated column "Average Value" is not able to go in the values or secondary values space.

 

I'm guessing the issue is that the average calculation doesn't have an associated "Name" for the legend but hoping there's a solution. Thank you!

 

legend.PNG

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @GunnerJ ,

 

The visual with legend field does not support adding multiple values at present. Please try to create multiple measures.

V-lianl-msft_0-1622181403051.png

a = CALCULATE(SUM('Table'[value]),'Table'[Type]="a")
b = CALCULATE(SUM('Table'[value]),'Table'[Type]="b")
c = CALCULATE(SUM('Table'[value]),'Table'[Type]="c")
average_ = AVERAGE('Table'[value])

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @GunnerJ ,

 

The visual with legend field does not support adding multiple values at present. Please try to create multiple measures.

V-lianl-msft_0-1622181403051.png

a = CALCULATE(SUM('Table'[value]),'Table'[Type]="a")
b = CALCULATE(SUM('Table'[value]),'Table'[Type]="b")
c = CALCULATE(SUM('Table'[value]),'Table'[Type]="c")
average_ = AVERAGE('Table'[value])

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Pragati11
Super User
Super User

Hi @GunnerJ ,

 

May be try using other visual like Line and Clustered Column chart and then use SMALL MULTIPLES. Somehting like below:

Pragati11_0-1622039259954.png

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain

MVP logoDACertAzCert

LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors