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 / CountRows in excel for...
Power Apps
Unanswered

CountRows in excel for current user

(0) ShareShare
ReportReport
Posted on by 55

Hi all,

 

I am creating an predictor app and as part of this I am adding a container where I want to be able to show the current users results based on whether they have achieved a 1st, 2nd or 3rd place. 

 

in my data table, i want to refer to the 'UserName' column, where the registered users 365 username is stored, and the 'Points' column, where a seperate part of the app posts each users points based on what their prediction was (5 for 1st, 3 for 2nd, 1 for 3rd, -1 for getting it wrong)

Currently, I am using the below in the Text property of my label within the container.

"First Place: " & CountRows(Filter(Predictions, UserName = varcurrentUser.UserName And Points = 5))
 
This isnt returning any errors, but is returning a "0" when it should be returning a "1" as there is one entry in my table which matches these conditions. 
 
Can anybody help to point out what I am missing?
Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @CG83 ,

    "First Place: " & CountRows(Filter(Predictions, Lower(Trim(UserName)) = Lower(Trim(varcurrentUser.UserName)) And Points = 5))

    try this

  • CG83 Profile Picture
    55 on at

    Thanks, but that is giving me the same issue. I have tested just the first section (the username) and that returns the correct number. As soon as I add the Points section then it returns 0.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard