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 / how to create a chart ...
Power Apps
Answered

how to create a chart for multiple column entries

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have 4 columns in my share point list that have the project IDs & 4 columns that have the hrs recorded for those project IDs, this is a time tracker list, there is an entry everyday by multiple users.

what i want: I want to create a chart which can display the sum of the hrs for a particular project, for example project ID1= 340, project ID1 hrs = 2 on 09/14/2020 & project ID2= 340, project ID2 hrs = 3 on 09/15/2020, on display it should show the sum as 5hrs for the ID: 340. Is it possible to do this in power apps

Pricilla_0-1600236317801.png

 

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

    Hi @Anonymous ,

    Do you want to sum the hours that ids are the same?

    Based on your screen shoots, it seems that you have four id columns and four hours columns.

    Could you tell me:  do you only have one id column that is not blank in one item?

    For example: 

    record1: only id1 has value, other id columns are blank

    record2:only id2 has value, other id columns are blank

    If so, issue will be a little simple.

    I assume that yes.

    Then please try to set the chart's Items:

    AddColumns(
    GroupBy(
    AddColumns(listname,"id",Concatenate(Project_ID1,Project_ID2,Project_ID3,Project_ID4),
     "hours",Project_ID1_hrs+Project_ID2_hrs+Project_ID3_hrs+Project_ID4_hrs
     ),
     "id",
     "sameid"
     ),
    "sumhour",
    Sum(sameid,hours)
    )

     //the id column will be project id, sumhour column will be the sum of hours based on project id.

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-yutliu-msft  in my case there maybe ID in one column or there may be IDs in all the columns, that shows the projects that a person has worked on in that particular day, but I have pulled a different data source now to get the required details. Thanks you.

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Has your problem been solved?

    If yes, could you mark my answer as solution?

    Thanks!

     

     

    Best regards,

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard