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 / Help needed with formu...
Power Apps
Answered

Help needed with formula for counting entries in Power App collection

(0) ShareShare
ReportReport
Posted on by 427

Hello,

 

I need some help to revise my formula currently present on my Default property of a text value: 

If(!IsBlank(FunctionCodeDropdown.Selected) && !IsBlank(DocumentTypeCodeDropdown.Selected) || varTriggerCalculation, Text(Value(CountIf(DocumentNumberCollection, DocCode = CurrentDocCode.Text && HasAttachment = false)+1) + 0, "00"))

DJanssen_0-1704798792805.png

What I want to achieve is that it counts the first entry. I thought that I could achieve this by adding the && HasAttachment = false and get Doc Reference: ENOWA-WA-WMG-POL-02 in return. But when I test this functionality in my app it remains as: 01 (meaning 0 entries are found possibly)

Categories:
  • Verified answer
    DJanssen Profile Picture
    427 on at

    Published it and tested it out on the app itself. It seems to work on publish. Not sure why it didn't work in my Power App editing form itself but it has been solved!

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 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard