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 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:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard