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 / Count values in column...
Power Apps
Unanswered

Count values in column if person matches

(0) ShareShare
ReportReport
Posted on by 138

Hi 

 

I'm making a holiday request tool and would like to add a way for the user to see the total number of holidays they have taken. 

 

I have a label on my power app which shows the current logged in user:

Label 5.Text = Office365Users.MyProfileV2().displayName

 

My app is linked with a sharepoint list titled "Holiday Request Tool." I would like to add another label to my app, which looks through the sharepoint entries to find all entries which match the Label5 in the "EID" column, then adds together all of the values in the "Number Of Days" column. Screenshot attached of my Sharepoint list. The screenshot shows 2 requests from the same person for 6 days and 8 days holiday, so I would like the label in my app to return 14. 

Can anyone help me do this please?

 

Thanks, Screenshot 2023-06-23 at 20.01.58.png

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,328 Super User 2025 Season 2 on at

    Hi @stephenjcarr 

    This should give you the result that you're looking for:

    Sum(Filter('Holiday Request Tool',
     EID=Label5.Text),
     'Number Of Days'
    )
  • stephenjcarr Profile Picture
    138 on at

    Hey @timl thanks for your reply! 

    This code doesnt give me any errors (other than a delegation warning), but the label is still blank. Do you have any ideas why this might be?

    Thanks, 

  • stephenjcarr Profile Picture
    138 on at

    Never Mind @timl - Found the problem! 

    Sum(Filter('Holiday Request Tool',
    EID.DisplayName=Label5.Text),
    'Number Of Days'
    )
    Thanks again! 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard