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 with 2 possible res...
Power Apps
Answered

If with 2 possible results

(0) ShareShare
ReportReport
Posted on by 18

Hello

 

I am trying to define an "IF" function with 2 possible results.

Intention is to have for field "Assigned group" below outputs based on "Product group":

 

Product group             Assigned group

Signalling & Policy      SS or PP

3G Core                       IPT

Cloud Infra                  CI

IMS Core                     IPT

Packet Core                 PP

Subscriber Data           SS

 

I have defined below function:

If(
PL.Selected.Result ="Packet Core",{value:"PP"},
PL.Selected.Result ="IMS Core",{value:"IPT"},
PL.Selected.Result ="Signaling & Policy",{value:"SS"},
PL.Selected.Result ="3G Core",{value:"IPT"},
PL.Selected.Result ="Subscriber Data",{value:"SS"},
PL.Selected.Result ="Cloud Infra",{value:"CI"}
)

 

but for "Signaling & Policy" I can't get SS and PP options.

How can I solve this?

 

thank you

 

Sónia Martins

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    What control type is this code placed in (drop down, check box, combo box, list box etc)

  • SA-20081442-0 Profile Picture
    18 on at

    Hi

    Both are DropDown.

    soniamartins_0-1654789340578.png

    Thank you

  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    Perhaps try something like so? Works on the test dropdowns i made

     

    Switch(
    PL.Selected.Value,
    "Packet Core",["PP"],
    "IMS Core",["IPT"],
    "Signaling & Policy",["SS", "PP"],
    "3G Core",["IPT"],
    "Subscriber Data",["SS"],
    "Cloud Infra",["CI"]
    )

    this goes in items of dropdown 2 

  • SA-20081442-0 Profile Picture
    18 on at

    it worked perfectly.

    thank you

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 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard