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 / "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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard