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 / Formula only shows out...
Power Apps
Unanswered

Formula only shows outcome for first match

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good afternon,

 

Let me say first that I am new to PowerApps. I'm trying to create a app that checks if a Business Central employee has their birthday today or not. If it's someone birhtday, it should notify "HB + the name of the employee". In this example "HB Assia Lammers & Roelf Schoonen". The problem is: It only shows the notify for the first employee that has their birthday today in this case.

 

I used the following formula:

 

ForAll('employees,v2.0';
If(Month(Title2) = Month(Today()) && Day(Title2) = Day(Today()); Notify("HB " & Subtitle2); Notify("Niemand jarig ")))
 
Any help is appreciated, and thanks in advance.
 
Kind regards,
El Patrón
PowerApps birthday of employees.png
Only first value taken.png
Categories:
I have the same question (0)
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    The problem with the formula is that the Notify function is only called once for the first employee whose birthday is today.

    This is because the ForAll function is used to iterate through all employees, but it does not accumulate the results of the notification function for each employee.

    Do you want to display the name of the person whose birthday is today in a reminder?
    Please try to display people's names together:

    vchengfenmsft_0-1677032647440.png

     

    Notify(If(CountRows(Filter(event,Text(Starttime,"mm/dd")=Text(Today(),"mm/dd")))>0,"HB"& Concat(Filter(event,Text(Starttime,"mm/dd")=Text(Today(),"mm/dd")),Title,"And"),"Niemand jarig"),NotificationType.Information)

    vchengfenmsft_1-1677032742746.png

    Here is result:

     

    vchengfenmsft_3-1677032809243.png

     

     

    Best Regards

    Cheng Feng

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Cheng,

     

    Thank you for your response, I appreciate it.

    I've got a small additional question; in your input file, is this a selfmade list? In my case, my source is Dynamics Business Central and my "visual" in PowerApps for this is a gallery, and I am only able to select the first name and birthday, but not all of them. If I want to select multiple values, I select the whole gallery. If I try to select for example the second name and birthday, it also selects the whole gallery. It does this for every value except the first ones. (see printscreens in attached files).

    El_Patrn_1-1677164998118.png

     

     

     

    Is there a way to work around this, or could this be out of my control and related to Dynamics Business Central?

     

    Thanks again in advance and with kind regards,

     

    Timo (username El_Patrón)

     

    first value.png
    gallery1.png

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 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard