cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HarishaAkkil
Helper III
Helper III

Combine formulas

Hi Team,

 

How to combine below two formulas in DisplayMode in Gallery's Edit icon

 

If(LookUp(Approval,ActualEmployeeID=ThisItem.EmployeeID,true),DisplayMode.Disabled,DisplayMode.Edit)

and,

If(UserRole="Allocation Manager" || UserRole = "Admin",DisplayMode.Disabled,DisplayMode.Edit)

 

Thanks,

Harisha

1 ACCEPTED SOLUTION

Accepted Solutions
iAm_ManCat
Super User
Super User

 

 

If(
   LookUp( Approval, ActualEmployeeID=ThisItem.EmployeeID, true)
   ||
   (UserRole="Allocation Manager" || UserRole = "Admin"),
   DisplayMode.Disabled,
   DisplayMode.Edit
)

 

 

 

This will combine the two and will mean that if either condition is true then it will be disabled 🙂

 

Hopefully that's what you were looking for?

 

Cheers,

Sancho

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

3 REPLIES 3
iAm_ManCat
Super User
Super User

 

 

If(
   LookUp( Approval, ActualEmployeeID=ThisItem.EmployeeID, true)
   ||
   (UserRole="Allocation Manager" || UserRole = "Admin"),
   DisplayMode.Disabled,
   DisplayMode.Edit
)

 

 

 

This will combine the two and will mean that if either condition is true then it will be disabled 🙂

 

Hopefully that's what you were looking for?

 

Cheers,

Sancho

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


HarishaAkkil
Helper III
Helper III

Hi @iAm_ManCat ,

 

Thank you so much. That works (need to remove comma after the look up).

Happy to help!

Thanks, yes you are correct, I have removed the comma from my answer now 🙂

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,707)