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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to show percentage...
Power Apps
Answered

How to show percentage of total in a Pie Chart

(0) ShareShare
ReportReport
Posted on by 35

I have managed to get the proportions of different organizations to show on a pie chart with the following formula in the items section of the chart:

 

AddColumns(
 AddColumns(
 GroupBy(
 Ungroup(
 Filter('Conflict of interest', 'Record Status'.Value = "Active"),
 "NamesoforganizationsIbelongto"
 ),
 "Value",
 "Organization"
 ),
 "count",
 CountRows(Organization)
 ),
 "Label",
 Value & " (" & Text(count) & ")"
)

 

It produces the following table: 

LabelOrganizationValuecount
Organization A (1)[Table]Organization A1
Organization B (1)[Table]Organization B1
None[Table]None1

 

I want to calculate and show on the pie chart what the proportion is of the 'count' column where the 'Value' is not "None". In the example above it would be 2/3 or 67% and I want to show this on the chart. Any help is much appreciated!

Categories:
I have the same question (0)
  • Verified answer
    CarlosFigueira Profile Picture
    on at

    If you move that formula from the Items property to a named formula, similar to the one below:

    GroupedItems = AddColumns(
     AddColumns(
     GroupBy(
     Ungroup(
     Filter('Conflict of interest', 'Record Status'.Value = "Active"),
     "NamesoforganizationsIbelongto"
     ),
     "Value",
     "Organization"
     ),
     "count",
     CountRows(Organization)
     ),
     "Label",
     Value & " (" & Text(count) & ")"
    );
    

    Then you can set the Items property of the pie chart to 'GroupedItems', and then add a label next to it with an expression similar to the one below:

    "Other than none: " & Round(100 * CountIf(GroupedItems, Value <> "None") / CountRows(GroupedItems), 0)

    Hope this helps!

  • SpongYe Profile Picture
    5,616 Super User 2025 Season 2 on at

    @Vw123 

    Please check my recent blog about Named Formulas: Unlocking the Power of Named Formulas in Power Apps 

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • Vw123 Profile Picture
    35 on at

    Thank you for the answers. Maybe I formulated my question a bit weird, but I would like the pie chart to show the proportion of how many people are connected to one or more organizations out of the total population. There are also some people who don't belong to any organizations in my data, hence "Value" column = None. In the example above there is 3 people in total and two of them belong to organizations.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard