Skip to main content

Notifications

Community site session details

Community site session details

Session Id : aL8bDOpcl0568UBk22zfgS
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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 177 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 99

#3
stampcoin Profile Picture

stampcoin 80

Overall leaderboard
Loading started