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 with correct coding
Power Apps
Answered

Help with correct coding

(0) ShareShare
ReportReport
Posted on by 96

Hi Experts,

I hope that someone is able to assist a novice, I have a date picker for to and from dates that the uses a list to exclude public holidays in the UK, which works, now we have a member of staff based in Ireland so I have made a new list and added the Irish public holidays but cant work out how to express it in the field that calculated the number of days that have been selected for this 1 user, the code is here and highlighted is what I am trying to do for said Irish user to use the Irish list:-

 

EmmaWatt_0-1700742887125.png

Many thanks for any help given, Emma

Categories:
I have the same question (0)
  • Verified answer
    VasileR Profile Picture
    298 Super User 2024 Season 1 on at

    Hi @EmmaWatt,

     

    You can add a simple If.

    Replace

    Not(Value in 'Bank Holidays'.BankHoliday)

     

    With

    If(user.email = xxx@xxx.com,
     Not(Value in 'ROI Bank Holidays'.BankHoliday),
     Not(Value in 'Bank Holidays'.BankHoliday)
    )

     

  • EmmaWatt Profile Picture
    96 on at

    Wonderful thank you had to tweak it to If(UserEmail = "XXX@xxx.com", and works perfectly.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard