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 / IF STATEMENT IN POWERAPPS
Power Apps
Unanswered

IF STATEMENT IN POWERAPPS

(1) ShareShare
ReportReport
Posted on by 25
If(
    !IsEmpty(
        Filter(
            'WFH Form Info',
            Title = ThisItem.Title &&
            DateValue(_dateSelected) >= DateValue(WFrom) &&
            DateValue(_dateSelected) <= DateValue(WTo) &&
            WStatus.Value = "Approved"
        )
    ),
    "Work From Home",
    !IsEmpty(
        Filter(
            'Leave Form Info',
            Title = ThisItem.Title &&
            DateValue(_dateSelected) >= DateValue(StartDate) &&
            DateValue(_dateSelected) <= DateValue(EndDate) &&
            Status.Value="Approved"
        )
    ),
    "On Leave",

    "In Office"
)
 
 
ON LEAVE IS NOT COMING IN GALLERY
Categories:
I have the same question (0)
  • AndrewR1 Profile Picture
    1,572 Moderator on at

    Hi @kritika26 try this:

    If(
     !IsEmpty(
     Filter(
     'WFH Form Info',
     Title = ThisItem.Title &&
     DateValue(_dateSelected) >= DateValue(WFrom) &&
     DateValue(_dateSelected) <= DateValue(WTo) &&
     WStatus.Value = "Approved"
     )
     ),
     "Work From Home",
     If(
     !IsEmpty(
     Filter(
     'Leave Form Info',
     Title = ThisItem.Title &&
     DateValue(_dateSelected) >= DateValue(StartDate) &&
     DateValue(_dateSelected) <= DateValue(EndDate) &&
     Status.Value = "Approved"
     )
     ),
     "On Leave",
     "In Office"
     )
    )

     Please click Accept as solution if my post helped you solve your issue. ✔️ This will help others find the solution to this problem. It also closes the item. Remember, you can accept more than one post as a solution.

    If the content was useful in other ways, please consider giving it Thumbs Up. 👍

    Thanks
    Andrew

  • kritika26 Profile Picture
    25 on at

    still its not working

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    can u tell us what the exact issue is that you are facing?

     

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard