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 / Check two conditions b...
Power Apps
Unanswered

Check two conditions based on column values

(0) ShareShare
ReportReport
Posted on by 485

Hello Community,

 

I have the next scenario:

- We have a different columns that I would like to set the DisplayMode property to Edit or View based on the next code:

If(
 And(dte_StartDate_1.SelectedDate >= Today()),
 DisplayMode.Edit, DisplayMode.View,
 And(
 Or(TabList1_3.Selected.Value = "Hold" || TabList1_3.Selected.Value = "Approved"),
 DisplayMode.Edit,
 DisplayMode.View
 )
)

But not works, if I added separately works well, like the next example:

If(dte_StartDate_1.SelectedDate >= Today(), DisplayMode.Edit, DisplayMode.View)

 and the other example:

If(TabList1_3.Selected.Value = "Hold" || TabList1_3.Selected.Value = "Approved", DisplayMode.Edit, DisplayMode.View)

And I would like to know how to combine those formulas into one, thanks.

 

Kind regards 👋 

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at

    Hi @esjimenezp 

     

    You code should look like:

    If(
     (dte_StartDate_1.SelectedDate >= Today() && 
     (TabList1_3.Selected.Value = "Hold" || TabList1_3.Selected.Value = "Approved")), 
     DisplayMode.Edit, 
     DisplayMode.View
    )

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 275

Last 30 days Overall leaderboard