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 / Need alternate solutio...
Power Apps
Answered

Need alternate solution of CountRows

(0) ShareShare
ReportReport
Posted on by 194

Hello,

I have using below formula in my text box

 

If(CountRows(Filter('Goal Approval',Emp_Name = User().FullName)) > 0,"Y","N")

Viral21_0-1630676858470.png

It not works because I have lagged amount of data.

So can anyone suggest me different way to do this?  

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey!

    I have 1 app with the same CountRows() and it works. 
    That is just a warning. Did you test it and make sure that it does not work?

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Viral21 

     

    Its delegation warning. We can ignore if the filter data volume is less than 500 (default). We can increase to max 2000.

     

    If you believe the data can grow then use this formula

     

    With(
     {
     _Item: Filter(
     'Goal Approval',
     Emp_Name = User().FullName
     )
     },
     If(CountRows(_Item)>0,"Y","N")
    )

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Viral21 

     

    My Sample

    With(
     {
     _Item: Filter(
     IssueTracker,
     'Assigned to'.DisplayName = User().FullName
     )
     },
     If(CountRows(_Item) > 0,"Y","N")
    )

     

    IssueTracker - SP List

    'Assigned to' - Person

  • Viral21 Profile Picture
    194 on at

    HI @StalinPonnusamy 
    Why it not me proper value?
    Is it something wrong done by me?

    Viral21_0-1630680648609.png

    you can see my list have value with Emp_Name = Archer Admin, but still it given me result "N"

    Viral21_1-1630680728881.png

     



  • Viral21 Profile Picture
    194 on at

    HI @Nogueira1306 
    I know that, but it not works for me

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Viral21 

     

    Can you place another label and set Text property to User().FullName to verify the name? This helps to troubleshoot.

  • Viral21 Profile Picture
    194 on at

    Viral21_0-1630681392111.png

    You can see into this snap

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Is it Sharepoint List or Document Library? Seams you have a folder.

  • Viral21 Profile Picture
    194 on at

    share point list

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Surprising. Other troubleshooting items

     

    1. Can you select the filter to see UI filter works like

    StalinPonnusamy_0-1630683069426.png

    2. Hard code your name like

     

    With(
     {
     _Item: Filter(
     'Goal Approval',
     Emp_Name = "Archer Admin"
     )
     },
     If(CountRows(_Item)>0,"Y","N")
    )

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard