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 Platform Community / Forums / Power Apps / Can a build a column c...
Power Apps
Answered

Can a build a column chart which show 2 columns for each user

(0) ShareShare
ReportReport
Posted on by 3,514

I have the following sharepoint list:-

 

sxcores.png

 

as shown it show an engineer name and the number of green and red points each engineer got.

 

so i want to build  canvas inside power app which shows a column chart >> where the column chart should show 2 columns (Green & Red) for each engineer? is this possible.

 

Now i created a new canvas >> add a column chart >> define the following:-

 

chart.png

 

But it did not work, where i am unable to show 2 columns for each user + i am unable to find the Engineer field which is of type People or Group that allow single selection.

 

 

what i am looking for is something as follow:-

 

useeeeeeeeeeeeeeeeeeeeeee.png

Regards

 

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @johnjohn123 

     

    add a chart control and add tis to its Items = AddColumns(GroupBy(YourData,"Engineer","User"),"Total Red",Sum(User,Red),"Total Green",Sum(User,Green))

     

    St Number of series = 2

     

    rubin_boer_0-1614338763191.png

     

    This is what you will get.

    Hope it helps

     
  • johnjohn123 Profile Picture
    3,514 on at

    @rubin_boerthanks for the reply. i tried you approach but i got an error that GroupBy has some invalid arguments, as follow:-

     

    for.png

     

    Hint:- the Engineer field has an internal name =ScoreUser

     

    I also tried this formula, but i got more errors on the GroupBy and on the Sum:-

     

    errorororor.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @johnjohn123 Why do you need to use Group by?

     

    What you need to do is change the number of series to 2.

    HimanshuSSharma_0-1614348837209.png

    Go to Properties-> Number of series = 2

    HimanshuSSharma_1-1614348880069.png

    Also, change the colour of the series using ItemColorSet in the Advanced section:

    HimanshuSSharma_2-1614349204341.png

     

    I did Red, Green because of the table I used. You might want to do the reverse for your case.

     

    If you want to use Group by for some reason, you might have to work with the formula a little, but you need to use it in case your Engineer column has repeated values.

     

    Please accept the solution if it helps you!

  • johnjohn123 Profile Picture
    3,514 on at

    @Anonymousi changed the number of series to 2 .. but which formula i need to use?

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @johnjohn123 Do you require Grouping?

     

    You would require grouping if your data looks like this:

    EngineerRed PointsGreen Points
    John23
    John42
    Himanshu16
    S35
    S22
    Sharma25
    Sharma11
    Sharma12

    (repeating engineers)

    You do not need to group if your data looks like this:

    EngineerRed PointsGreen Points
    John23
    John 12342
    Himanshu16
    S35
    Sharma25

     

    If your data is like the second one, use AddColumns(Scores, "UserName", Engineer.FullName) 

     

    If your data is like the second one, use AddColumns(GroupBy(Scores, "Engineer", "Data"), "UserName", Engineer.FullName, "Red Points", Sum(Data, ScoreRedPoint), "Green Points", Sum(Data, ScoreGreenPoint))

     

    I am assuming Engineer.FullName is the name field in your organisation. I am assuming the case where your engineer columns is linked to people in your organisation.

     

    In case Engineer is a simple string field, you do not need to use Engineer.FullName. Skip the part and you are good.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard