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 Apps
Answered

If statement

(0) ShareShare
ReportReport
Posted on by 494

Hi Guys,
Does anyone know how to apply the If statement on this scenario? What happened If the Requestor request for >=500000 amount the approver is team.chua@leader.ph if the amount is >=100000 the approver is team.guioguio@leader.ph. My problem is if the requestor is team.guioguio@leader.ph and amount she requested is >=100000 her approver is herself(team.guioguio@leader.ph) supposedly her direct approver is team.chua@leader.ph

this is my formula
If(
     Value(TotalAmount_4.Text) >= 500000,
     Office365Users.UserProfile("team.chua@leader.ph").DisplayName,
     If(
     Value(TotalAmount_4.Text) >= 100000,
    Office365Users.UserProfile("team.guioguio@leader.ph").DisplayName,
    Office365Users.UserProfile(Label40.Text).DisplayName
     )


Thank you so much

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Big_S ,

    Do you want to make the approver as "team.chua@leader.ph" if the Requestor is "team.guioguio@leader.ph" and the request amount is more than 100000?

     

    Based on the needs that you mentioned, I think the If function could achieve your needs. I have made a test on my side, please consider modify your formula as below:

    If(
     Value(TotalAmount_4.Text) >= 500000,
     Office365Users.UserProfile("team.chua@leader.ph").DisplayName,
     Value(TotalAmount_4.Text) >= 100000,
     If(
     User().Email = "team.guioguio@leader.ph",
     Office365Users.UserProfile("team.chua@leader.ph").DisplayName,
     Office365Users.UserProfile("team.guioguio@leader.ph").DisplayName 
     ),
     Office365Users.UserProfile(Label40.Text).DisplayName
    ) 

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • Big_S Profile Picture
    494 on at

    Hi @v-xida-msft 

    I will execute this! thank you so much!!!! ❤️ 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard