Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Counting Distinct Values and GroupBy



I´me new to PowerApps and i´m building an App that tracks the state of different Items by area.

Right now i need to summarize each distinct state by Area and put in a chart the items, but i can´t reach any result.

I can countrows for each column indivudually and show the result in a PieChart with a GroupBy function, but can´t reach to the formula for the result for all columns in my table.

My table looks like this:


  What i need is to GroupBy "Local" and Totals for "Bom", "Mau" and "Razoável" and put the Data on a Column Chart, like this:



Please help me with the formula to build my chart and show my data like the chart above.


Thanks in advance.




Helpful resources


Watch Sessions On Demand!

Continue your learning in our online communities.

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!


Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 236 members 4,000 guests
Please welcome our newest community members: