cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Steelman70
Level 10

Re: Bar Chart Legend is Weird

I shouted so that you would notice that I had changed the approach to a better one.

I don't know why the OOB approach does not work, maybe you should give feedback to Microsoft to change the default for legend items.  I suspect it does not work since there is no reference possible to set the Legend1.Items property equal to ColumnChart1.Items (or ColumnChart1.AllItems in the same way you would for a gallery).  If you try, this gives an error of "Invalid name".  This may be a bug or intentional.

Power Automate Staff audrieg
Power Automate Staff

Re: Bar Chart Legend is Weird

I appreciate your clarifications. Let's go ahead and "STOP THIS" as per your recommendation. It's become an uncomfortable experience for me.

starwispy
Level: Powered On

Re: Bar Chart Legend is Weird

Thanks @Steelman70 for this solution Smiley Happy

 

To be honest I found this thread a bit hard to follow (no fault of yours, I just didn't understand what you meant at first).  For other noobs like me -- basically you can use the exact same formula in the Items property for the Legend that you use in the Items property for the Chart.  The legend then displays correctly and does not require user selection in order for it to appear.

 

Example formula:   AddColumns(GroupBy(DataSource, "ColumnName", "Group"), "Count", CountRows(Group))

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,838)