cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhinesh28R
Helper V
Helper V

pie chart count Rows

Hi,

 

In my list i have a following Name field ,
Suresh

Dani,

Rajan,

Arun,

Suresh,

Dani...


Now i want a count for name into a piechart.

Am using a follwing formula to get a count for name column into a piechart,
AddColumns(GroupBy(AddColumns(List, "Name1",Name), "NAme1", "NameColumn"), "Count", CountRows(NameColumn)).



But am didnt get count.

 

How to get in a piechart?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Microsoft
Microsoft

Hi @Dhinesh28R ,

 

PieChart control has a property named 'Series'.

We can only use number columns on this property. (Such as 'ID' instead of a text column).

 

Please see the steps below:

1\ This is my list 'LIST79'

v-xiaochen-msft_0-1614074091670.png

 

2\ Set the Items property of PieChart control to:

AddColumns(GroupBy(AddColumns(LIST79,"name1",TestName),"name1","TestName"),"Number",CountRows(TestName))

 

3\ Set the Series proper to :

Number

v-xiaochen-msft_1-1614074156000.png

 

 

4\ Set Items property of Legend control to:

AddColumns(GroupBy(AddColumns(LIST79,"name1",TestName),"name1","TestName"),"Number",CountRows(TestName)).name1

 

5\ The result is as follows:

v-xiaochen-msft_2-1614074224291.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

 

View solution in original post

3 REPLIES 3
Dhinesh28R
Helper V
Helper V

HI all, 

this formula also working i changed  label items with above formula ... and also changed a column chart label.. then its working..

 

 

Thanks

v-xiaochen-msft
Microsoft
Microsoft

Hi @Dhinesh28R ,

 

PieChart control has a property named 'Series'.

We can only use number columns on this property. (Such as 'ID' instead of a text column).

 

Please see the steps below:

1\ This is my list 'LIST79'

v-xiaochen-msft_0-1614074091670.png

 

2\ Set the Items property of PieChart control to:

AddColumns(GroupBy(AddColumns(LIST79,"name1",TestName),"name1","TestName"),"Number",CountRows(TestName))

 

3\ Set the Series proper to :

Number

v-xiaochen-msft_1-1614074156000.png

 

 

4\ Set Items property of Legend control to:

AddColumns(GroupBy(AddColumns(LIST79,"name1",TestName),"name1","TestName"),"Number",CountRows(TestName)).name1

 

5\ The result is as follows:

v-xiaochen-msft_2-1614074224291.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

 

View solution in original post

Hi @v-xiaochen-msft ,

Thank man, Its working fine man. But didnt display count '1' in Pie chart man apart from 1 it shows 2,3,4 .. but dont display 1. But while Mouse Hovering it will display 1. otherwise dont.

I found a solution man. Because of More records it wont diaplsy 1. When i delete some records it display 1.

 

And , I have a another doubt man

 

.Graph.png Shall we display a Count in numbers along with name1 in Legand man? Like above Image.

 

Is it Possible?

 

 

Thanks,

Dhinesh

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (59,341)