web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Chart questions

(0) ShareShare
ReportReport
Posted on by 103

Hi team,

I have added an Excel Online file to my new Canvas app

Excel file has a table called "Table1"

It has two columns. "Country" and "Office"

 

I would like to create a Pie chart to display how many offices there are in each country.

If I just add the pie I can see all countries or offices not not grouped with a number?

 

Second question:

Can I somehow group a query to get the number of offices in total and being displayed in a regular text filed in the app?

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @fiddlerx ,

     

    Please try:

    AddColumns(GroupBy(TableName,"Country","NewColumn"),"CountOffice",CountRows(NewColumn))

     

    Best Regards,

    Bof

  • fiddlerx Profile Picture
    103 on at

    Perfect and If I would like to select 3 countries and exclude the rest can that be done in the same function?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard