web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Enhance Pie Chart Legend
Power Apps
Unanswered

Enhance Pie Chart Legend

(0) ShareShare
ReportReport
Posted on by 1,168

Hi,

 

I have a canvas app with a pie chart that returns records based on a Month/Year Combo Box. All working perfectly.

 

Labels aren't appearing in the pie and I would also like to add them to the legend. eg

(10) - Project Cancelled     (8) - No Budget 

(4) - Another Reason         (2) - Yet another reason

 

I was thinking that it would be a Concatenate inside the Items of the legend but just not quite sure with the exact code.

 

The Items code is as follows

 

If(
 IsEmpty(ComboboxCanvas1.SelectedItems),

 AddColumns(
 GroupBy(
 Filter(
 Quotes,
 FinalStatus = 1
 ),
 "Reason",
 "Grouped"
 ),
 "LabelColumn",
 Concatenate(
 Reason,
 " - ",
 Text(CountRows(Grouped))
 ),"Count",
 CountRows(Grouped)

 ),
 AddColumns(
 GroupBy(
 Filter(
 Filter(
 Quotes,
 FinalStatus = 1
 ),
 Text(
 FinalisedDate,
 "[$-en-US]mmm-yy"
 ) = ComboboxCanvas1.Selected.MonthName
 ),
 "Reason",
 "Grouped"
 ),
 "Count",
 CountRows(Grouped)
 )
)

 

Thanks in advance

 

Todd

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard