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 Platform Community / Forums / Power Apps / Dropdown within Column...
Power Apps
Answered

Dropdown within Column Chart

(0) ShareShare
ReportReport
Posted on by 146

Hi everyone,
Hope you all are doing well, I need some assistance with PowerApps specifically with charts. I have a list that I want to create a chart based on 2 columns. one column is called territory (North, South, West, and East) And I want those options to be on a dropdown, so when a territory is chosen the chart shows the issue categories from the other column. I tried and it comes back with all answers per territory instead of grouping them into the 5 categories that they are. For example, if I select North, I wanted to come back on the chart with issue1=# issue2=# issue3=#, etc. I searched around the site and could find anything that will help me add the answers per issue and present a column on the chart. So far, I tried the following,

 

Sort(Filter(CETroubleshooting_tracker,Territory  = Dropdown5.Selected.Result),Category)

for the chart and
Distinct(CETroubleshooting_tracker, Territory) for the dropdown (this one is working fine)

Categories:
I have the same question (0)
  • Ginko Profile Picture
    221 on at

    Will these issues be static and predefined or be consistently changing/added/removed with user input?

  • Verified answer
    rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at

    hi there @ReyOrtiz 

     

    what does the data look like in the second column?  you will have to group the data and based on what you have in the second column either sum or count the data. 

     

    for example

    AddColumns(
     GroupBy(
     yourDataSource,
     "territory",
     "territories"
     ),
     "total for issue1",
     Sum(
     territories,
     issue1
     ),
     "total for issue2",
     Sum(
     territories,
     issue2
     ),
     "total for issue3",
     Sum(
     territories,
     issue3
     )
    )

    this will give you the total for issue1, 2 and 3

     

    If you have a column which is populated issue 1 issue 2/3 then

    AddColumns(
     GroupBy(
     Filter(yourDataSource, territory = yourComboBox.Selected.Result),
     "territory",
     "territories"
     ),
     "total issue 1",
     CountRows(
     Filter(
     territories,
     issues = "issue 1"
     )
     ),
     "total issue 2",
     CountRows(
     Filter(
     territories,
     issues = "issue 2"
     )
     ),
     "total issue 3",
     CountRows(
     Filter(
     territories,
     issues = "issue 3"
     )
     )
    )

     

    Result

    Peek 2022-06-13 21-11.gif

     

    Hope it helps,

    R

  • ReyOrtiz Profile Picture
    146 on at

    Thank you @rubin_boer 

    It worked like a charm thank you so much for the quick response. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard