Skip to main content

Notifications

Community site session details

Community site session details

Session Id : w6Oo3QQVCLfhonPmgy++KX
Power Apps - Building Power Apps
Unanswered

Piechart percentage

Like (0) ShareShare
ReportReport
Posted on 18 Jul 2023 14:17:07 by 8

Hi, I want to add the percentage of report status column. Please see the below attached Pie chart and table screenshots.

Kindly provide me the solution asap. 

Thanks in advance.

Categories:
  • Palans12 Profile Picture
    8 on 19 Jul 2023 at 07:15:39
    Re: Piechart percentage

    But one of the status is showing 125%. If we calculate all the status values, the total is more than 100%.

  • JatinSaini Profile Picture
    428 on 19 Jul 2023 at 07:12:26
    Re: Piechart percentage

    Hi @Palans12 ,

    Am glad that the Percentage code worked. Now you wanna show the status name on the legend.

     

    Perform the following steps:

     

    As I see you are using Percentage for both Label and Series on your PieChart1.

    Keep -

    Label as = Name of your status/4Itb report status

    Series as = Percantage

     

    Now for the Legend Items Property:

    PieChart1.SeriesLabels

     

     

    If you liked my suggestion. Please like and resolve. Happy to help.

  • Palans12 Profile Picture
    8 on 19 Jul 2023 at 06:50:26
    Re: Piechart percentage

    Thanks for the help.

    We tried the code. The 4RT.value produces an error. See the attached file for further information.

  • Palans12 Profile Picture
    8 on 19 Jul 2023 at 06:42:30
    Re: Piechart percentage

    Thanks for your help.

    Percentage is working fine. But one of the status is showing 125%. If we calculate all the status values, the total is more than 100%.


  • JatinSaini Profile Picture
    428 on 19 Jul 2023 at 05:57:15
    Re: Piechart percentage

    Use this code :

     

    AddColumns(AddColumns(GroupBy(AddColumns(Table1,"name1",'4itb report status'),"name1","4itb report status"),"Number",CountRows('4itb report status')),"Percentage",Text(Value(Number / 'Total Status Count') * 100,"[$-en-US]#.00%"))

     

    If there are total 4 different status, then replace 'Total Status Count' by 4

  • Palans12 Profile Picture
    8 on 18 Jul 2023 at 17:55:26
    Re: Piechart percentage
  • JatinSaini Profile Picture
    428 on 18 Jul 2023 at 14:42:05
    Re: Piechart percentage

    Hi @Palans12 ,

    Could you please share the pic chart code for better understanding? 

  • madlad Profile Picture
    2,637 Super User 2025 Season 1 on 18 Jul 2023 at 14:38:16
    Re: Piechart percentage

     

     

    ForAll(
     Distinct(
     Table1, 
     '4itb Report Status'
     ) As 4RT, 
     {
     Title: 4RT.Value,
     Percentage: 
     (
     CountRows(
     Filter(
     Table1, 
     '4itb Report Status' = 4RT.Value
     )
     ) / CountRows(Table1)
     ) * 100
     }
    )

     

     

    This should return a table containing records formatted as: {Value, Percentage}.

     

    I had trouble loading your table image, but it looks like your Pie Chart is based off of the '4itb Report Status' column, so I used that here.

     

    Hope this helps!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard