Skip to main content

Notifications

Community site session details

Community site session details

Session Id : PV2xf/GbelsiBVJeRIjCgc
Power Apps - Building Power Apps
Answered

Display result from Dropdown menu only when value from it is selected

Like (0) ShareShare
ReportReport
Posted on 8 Jan 2020 13:04:22 by 901

Happy Wednesday!

 

What is the best approach to only show result per Dropdown once selected. Right now when the user select "CatedoryDrp" it automatic populate "SubCategoryDrp","Product Name"

 

Dropdown.PNG

Here is what l'm using now to populate the Dropdown

CatedoryDrp

Distinct('PB Data',Category)

SubCategoryDrp

Distinct(Filter('PB Data',Category=CategoryDrp.Selected.Result),SubCategory)

Product Name

Distinct(Filter('PB Data',SubCategory=SubCategoryDrp.Selected.Result),Concatenate(Item," ",ProductName))

 

I hope i explain correctly

 

Thank you in advance

Categories:
  • oappdev Profile Picture
    901 on 09 Jan 2020 at 16:37:45
    Re: Display result from Dropdown menu only when value from it is selected

    Thank you so much for your help  @mdevaney 

  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 09 Jan 2020 at 16:32:15
    Re: Display result from Dropdown menu only when value from it is selected

    @oappdev 

    Delegation was my thought too.  I am glad you were able to solve the problem.

     

    Best of luck building your app!

  • oappdev Profile Picture
    901 on 09 Jan 2020 at 12:56:40
    Re: Display result from Dropdown menu only when value from it is selected

    Happy Thursday @mdevaney 

    I fixed it was a "Delegation warning"

     

    Trying to figure out why the third drop-down the data is showing without the user selecting the first and second drop-down

     

    Code for "Product Name"

    Distinct(Filter('PB Data',IsBlank(SubCategory)=true Or SubCategory=drpSubCategory.Selected.Result),Concatenate(Item," ",ProductName))

     

    DropDownProductName.PNG

  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 09 Jan 2020 at 00:53:48
    Re: Display result from Dropdown menu only when value from it is selected

    @oappdev 

    What is the error message you are receiving here?  I see the warning symbols but not the message.  This will help me to diagnose what is going on.

  • oappdev Profile Picture
    901 on 08 Jan 2020 at 15:10:48
    Re: Display result from Dropdown menu only when value from it is selected

    @mdevaney 

    I using the following code that enable the [ ADD ] button. 

    DisplayMode

    If(IsBlank(SubCategoryDrp.Selected.Result) || IsBlank(ProductNameDrp.Selected.Result), DisplayMode.Disabled,DisplayMode.Edit)

     

    But i just want the [ ADD ] to enable when they only select "Product Name" drop-down

    i'm using the code

    If(IsBlank(ProductNameDrp.Selected.Result),DisplayMode.Disabled,DisplayMode.Edit)

    Is giving me an error

     

    Disable.PNG

  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 08 Jan 2020 at 14:24:55
    Re: Display result from Dropdown menu only when value from it is selected

    @oappdev 

    Yes, you can.  I will let you know whether or not I have an idea of the solution.

  • oappdev Profile Picture
    901 on 08 Jan 2020 at 14:14:43
    Re: Display result from Dropdown menu only when value from it is selected

    Thank you so much @mdevaney 

    This did the trick

    SubCategoryDrp

    Distinct(
     Filter(
     'PB Data',
     IsBlank(Category)=true OR Category=CategoryDrp.Selected.Result
     ),
     SubCategory
    )

    Product Name

    Distinct(
     Filter(
     'PB Data',
     IsBlank(SubCategory)=true OR SubCategory=SubCategoryDrp.Selected.Result
     ),
     Concatenate(Item," ",ProductName)
    )

     

    Can i ask a part 2 question?

  • mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 08 Jan 2020 at 13:58:10
    Re: Display result from Dropdown menu only when value from it is selected

    @oappdev 

    Awesome.  I'm thinking this will work

    IsBlank(Category)=true OR Category=CategoryDrp.Selected.Result

     

    But in case it shows as a 0 character string instead you could also try this

    Category="" OR Category=CategoryDrp.Selected.Result

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • oappdev Profile Picture
    901 on 08 Jan 2020 at 13:55:00
    Re: Display result from Dropdown menu only when value from it is selected

    You rock @mdevaney  Will give it a try and circle back đꤓ

  • Verified answer
    mdevaney Profile Picture
    29,987 Super User 2025 Season 1 on 08 Jan 2020 at 13:52:34
    Re: Display result from Dropdown menu only when value from it is selected

    @oappdev 

    I think the most straightforward way to do this would be to have a blank cell as the 1st row in 'PB Data' for SubCategoryDrp and ProductName.

     

    SubCategoryDrp

    Distinct(
     Filter(
     'PB Data',
     IsBlank(Category)=true OR Category=CategoryDrp.Selected.Result
     ),
     SubCategory
    )

     

    Product Name

    Distinct(
     Filter(
     'PB Data',
     IsBlank(SubCategory)=true OR SubCategory=SubCategoryDrp.Selected.Result
     ),
     Concatenate(Item," ",ProductName)
    )

     

    If the blank value does not appear 1st I believe you could apply a SORT function to make it go to the top!

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started