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 / "Or" function in Power...
Power Apps
Unanswered

"Or" function in Power Apps formula

(0) ShareShare
ReportReport
Posted on by 19

I had a formula in Power apps for 2021 but now I have 2022 data and I need to update my formula to capture.  How Can I write a formula to with an "OR" inside an "IF".  Here is my formula:

If(Value(DataCardValue_Shrink.Text) > 0, (Round(If(Dropdown_Product.Selected.Result="YB21", ((DataCardValue17) / 60), (DataCardValue17) / 56) - Value(DataCardValue_Shrink.Text)*1.5*(If(Dropdown_Product.Selected.Result = "YB21", ((DataCardValue17) / 60) , If(Dropdown_Product.Selected.Result = "YB21",((DataCardValue17)/60)), (DataCardValue17) / 56)),2)),Round(If(Dropdown_Product.Selected.Result ="YB21", ((DataCardValue17) / 60), (DataCardValue17) / 56),2))

 

I either want the OR to be "YB21" or "YB22" or can is there a contain formula to say the result CONTAINS YB so I don' t have to change every year?  THANKS!!!

Categories:
I have the same question (0)
  • abc3 Profile Picture
    207 on at

    Ues || if(a=1|| a =2)

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @1210 ,
    Use

    Dropdown_Product.Selected.Result in [“YB21",”YB22”]

    and you can add to array later also “YB23” for next year.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard