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 / Count function does no...
Power Apps
Answered

Count function does not work when PowerApp is accessed via applink

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Hi ,
On the main screen of my app , I have a gallery which is connected to a Sharepoint list , in the same screen I have added another counter which counts the number of items in the gallery
This counter displays the right value when I access the app through my phone or tablet and also when I access the app in the browser via the app link
The issues arises when I pass parameters in the link and try accessing the app
In this case , the counter displays 0
Any clue why is this happening and how can it be solved ?
Categories:
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you share more details with your issue?

    1. What is the usage of parameter?

    2. What is the formulas you used to count the gallery item? CountRows(Gallery1.AllItems)?

    I have made a test based on your description, but don't have the issue your mentioned.

    In my test, I use the passed parameter to filter the gallery, and use countrows function to count the gallery items.

    No parameterNo parameterwith a patameterwith a patameter

    Also you can follow my test to check if your issue still remains.

    Best regards,

    Sik

    If my post is helpful for you, please click on “Accept as Solution” to help other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    HI @v-siky-msft ,

    The issue is fixed .

    Actually the parameter that was being passed was breaking the link which led to the count function not displaying the correct value.

    I simply renamed the parameter and the issue was fixed.

    Thanks for your help 🙂

     

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    That's great. 

    Hopefully, you can mark the click your post on “Accept as Solution” to finish the thread and help other members find it more quickly.

     

    Best regards,

    Sik

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard