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 Apps
Unanswered

Pie chart support

(0) ShareShare
ReportReport
Posted on by

Need help with creation of pie chart

 

I have SharePoint list with Below column:

1. Read = Yes/No

2. Ack = Yes/No

3. Closed = Yes/No(True/False)

 

I want pie chart which will display all 3 columns as percentage or count.

 

Please help as soon as possible. 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @Anonymous 

    Please provide a sample of how the chart should look and the data used to build it.  Pie charts typically only use data from a single column so that's why I don't understand what you need.

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    on at

    data.JPG

     

     

    @mdevaney  Above is my data
    When User click on Title , I want to display Read(True) percentage, Ack(true) % and Isclosed(true) percentage for that particular title in single pie chart is this possible or any alternate suggestion to display this please.

    Thanks for Your help.

     

     

     

  • mdevaney Profile Picture
    29,989 Moderator on at

    @Anonymous 
    Can you please show an example of what the pie chart would look like for this data?

     

    Typically, a pie chart would only show data from a single column. (100%)

    I cannot picture how a pie chart would calculate the percentages for 3 columns (300%)

     

    Thanks in advance 🙂

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    on at

    Hi,

     

    Can you guide me on how to show percentage for single column
    eg. for read column , True 60% and False 40%

     

    And is it possible to have 3 buttons for Read , Write and Closed and when i click on Read it should display true/false percentage for closed field and selected title in pie chart

    @mdevaney  

    Thanks

  • mdevaney Profile Picture
    29,989 Moderator on at

    @Anonymous 

    As you can see from my code below the code is quite complex.  In my opinion, best to get this working for only 1 option and then figure out the final 2. 

     

    Please put this code in the OnSelect property on a button and click it to make the collection.  Then place a pie chart on the screen and load the data.  Let me know the result.

     

    ClearCollect(
     RenameColumns(
     AddColumns(
     GroupedPieChartData,
     DropColumns(
     AddColumns(
     GroupBy(your_datasource_name,"Acknowledge","GroupedItems"),
     "Count Value",CountRows(GroupedItems)
     ),
     "GroupedItems"
     ),
     "Percent",
     'Count Value'/CountRows(your_datasource_name)
     ),
     "Acknowldge",
     "Category"
    );
    

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    on at

    Hi, I will try below solution but for now i have changed my requirement. I will create 3 pie charts for 3 columns and i will show count only, I am bale to achive this using Addcolumns parts only but now my concern is How to rename lables.

    I have 2 results Yes and No, it shows count like 1 and 5 with different colour but how to show names along with count.

    @mdevaney 

     

    And if i changed Pie chart to some other chart like column chart is it possible to show all 3 scenarios.

  • mdevaney Profile Picture
    29,989 Moderator on at

    @Anonymous 

    Since you have changed direction I would ask that you please share the code you ended up using to create the collection.  I would also like to see a screenshot of the chart so I can visualize what you are talking about.

     

    No, there is no chart that will show 'multi-dimensional' data like you are asking for.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    on at

    My Formulas
    Read : AddColumns(GroupBy(Filter('Task Tracker',Title='Document Title'.Selected.Result),"Read_x0020_By_x0020_Me","ByRead"),"ReadCount",CountRows(ByRead))

     

    Ack: AddColumns(GroupBy(Filter('Task Tracker',Title='Document Title'.Selected.Result),"Acknowledge_x0020_By_x0020_Me","ByAck"),"AckCount",CountRows(ByAck))

     

    Closed : AddColumns(GroupBy(Filter('Task Tracker',Title='Document Title'.Selected.Result),"IsClosed","ByClosed"),"ClosedCount",CountRows(ByClosed))

     

    and chart is dash.JPG

     

    Here 5 is NO and 1 is YES

    I want to display Labels as Read Yes : 1, Read No : 5  for each and every column

     

    @mdevaney 

     

  • Verified answer
    mdevaney Profile Picture
    29,989 Moderator on at

    @Anonymous 
    You are clearly adept at this so I will show you how to make the Acknowledgments chart and you can do the rest 😀

     

    We need to add an additional column to the collection.  Use this modified code for Acknowledgments.

    AddColumns(
     AddColumns(
     GroupBy(
     Filter('Task Tracker',Title='Document Title'.Selected.Result),
     "Acknowledge_x0020_By_x0020_Me",
     "ByAck"),
     "AckCount",
     CountRows(ByAck),
     "ChartLabel",
     'Acknowledge By Me'& ": " & AckCount
    )



    To show the correct label simply change the Labels property to 'ChartLabel'.  (My picture has the wrong name, whatever... lol).

    Untitled.png

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."



  • Community Power Platform Member Profile Picture
    on at

    Achieved with little modification

     

    AddColumns(
    GroupBy(
    Filter('Task Tracker',Title='Document Title'.Selected.Result),
    "Read_x0020_By_x0020_Me",
    "ByRead"),
    "ReadCount",
    CountRows(ByRead),
    "ChartLabel",(If(Read_x0020_By_x0020_Me=true,"Read:"&CountRows(ByRead),"Not Read:"&CountRows(ByRead)))
    )

     

    @mdevaney 

     

    Done. 😊

     

    Thank you

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard