web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / If function can't work
Power Apps
Unanswered

If function can't work

(0) ShareShare
ReportReport
Posted on by 372

Hi,

 

So I have this logic for my apps:

firda59_0-1692320802840.png

 

The button being logic,

-I want when ThisItem.'Current Location' contain "HDR" atau "WM0" atau "HCP" atau "POL", then the button 'being' can I click for 4 item in that gallery

-but, when  ThisItem.'Current Location' is not included that word, I only can click the button 'being' for one time. 

I used this formula,

If(
Or(ThisItem.'Current Location' = "HDR",
"WM0" in ThisItem.'Current Location',
"HCP" in ThisItem.'Current Location',
"QC" in ThisItem.'Current Location',
"POL" in ThisItem.'Current Location'),
true,

If(
CountIf(ComponentTracking, 'Current Location' = ThisItem.'Current Location' && 'Status Komponen' = "Being") = 0,
Patch('Component Tracking', LookUp(ComponentTracking, 'SO/PO/WBS' = PO_hide.Text), {'Status Komponen': "Being"}),
false))

 

not error, but just work for the second logic, not both logic. can anyone help me? thank you!

Categories:
I have the same question (0)

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard