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 Apps - Building 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!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 663 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard