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 / Help with Formula Logi...
Power Apps
Answered

Help with Formula Logic multiple conditions on an IF statement

(0) ShareShare
ReportReport
Posted on by 1,151

Hi Everyone

Could some on give me some direction?

I am creating a preview of a form which will be emailed (HTMLText).

I am attempting to setup that text displays based on Dropdown values.

I have done it with selecting one value but can you do it with 2 values in one IF statement

My formula currently  is

&"<br><br><b>" & If(Dropdown1_1.Selected.Value="Minor Development", DataCardKey1.Text) &"<br></b>" & If(Dropdown1_1.Selected.Value="Minor Development", Dropdown1_1.Selected.Value)

 

I tried this but it doesn't work

 

&"<br></b>" & If(Dropdown1_0.Selected.Value="Minor Development", Dropdown1_0.Selected.Value) &"<br><br><b>" & If(Dropdown1_1.Selected.Value="Minor Development", DataCardKey1.Text) &"<br></b>" & If(Dropdown1_1.Selected.Value="Minor Development" Or "Safety Critical", Dropdown1_1.Selected.Value)

 

Any help appreciated

Gary

Categories:
I have the same question (0)
  • Verified answer
    gazzo1967 Profile Picture
    1,151 on at

    Hi All

    I have found the solution (I am new to this lol) so this is to help the other new users 🙂

    Instead of using If statements you use a Switch

    Switch ( the value you want to action,

    "measure", outcome,

    "measure2",outcome )

     

    in my case the example would be

    Switch(Dropdown1_1.Selected.Value,

    "Minor Development", DataCardKey1.Text,

    "Safety Critical", DataCardKey1.Text

    )

     

    Hope this helps someone 🙂

    Gary

  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @gazzo1967 ,

     

    Thanks for sharing your resolution here and hope others could benefit from it.

     

    Regards,

    Mona

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard