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 Apps
Suggested Answer

DropDown Items

(1) ShareShare
ReportReport
Posted on by 17
hey, 
 
I'm trying to do the items tab on my drop down with:

if my colselected (it's always just one item = 1 row) on the status column = "CD",
then the drop down only shows me options for ["CD"] (i also need a blank option).

if not, if the status = "Result", then look up on the list "TestResult", for that same code on the column MaterialDoc on the colselected and read off of the ddTestResult column within the list.

if the column = Pass, then my drop down only shows me options for ["321"] (i also need a blank). If "Fail", it shows me the same as before, ["CD"].
 
I was trying something like:
If(
    !IsBlank(LookUp(colSelected, Status = "CD")),
    [" ", "CD"],
    LookUp(
        TestResult,
        MaterialDoc = ThisRecord.MaterialDoc,
        ddTestResult
    ) = "PASS",
    [" ","321"],
    [" ","CD"]
)

it was giving me different errors. any idea what can be done?
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    1,684 Super User 2026 Season 1 on at
    Hello @VO-16022037-0
     
    Assuming that you are using the form control inside have dropdown/combobox control. 
     
    Please try below code: 
    With(
        {
            resultStatus: LookUp(
                TestResult,
                MaterialDoc = selectedRecord.MaterialDoc, 
                ddTestResult
            )
        },
        If(
            selectedRecord.Status = "CD",
            ["", "CD"],
            If(
                resultStatus = "PASS",
                ["", "321"],
                ["", "CD"]
            )
        )
    )
    
    Note: // selectedRecord - Replace this with your selected record. Use a variable if you're storing the selection, or reference the relevant control (e.g., Dropdown1.Selected) if the value depends on another dropdown
     
    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing!

     
  • Suggested answer
    11manish Profile Picture
    847 on at
    Try below :
     
    With(
    {
    varStatus: First(colSelected).Status,
    varMaterialDoc: First(colSelected).MaterialDoc,
    varResult: LookUp(
    TestResult,
    MaterialDoc = First(colSelected).MaterialDoc,
    ddTestResult
    )
    },
    If(
    varStatus = "CD",
    ["", "CD"],
    varStatus = "Result" && varResult = "PASS",
    ["", "321"],
    ["", "CD"]
    )
    )
  • WarrenBelz Profile Picture
    154,797 Most Valuable Professional on at
    Posting in case any of the previous results do not work with a couple of suggestions.
     
    Firstly, you only need one of two results, so why bother with any test on "CD". Also the Combo Boxes (and other Table controls) can be inconsistent when given dynamic multiple Items options, so this should work if your problems are here
    With(
       {
          _Item:
          If(
             LookUp(
                TestResult,
                MaterialDoc = ThisItem.MaterialDoc,
                ddTestResult
             ) = "PASS",
             "321",
             "CD"
          )
       },
       Table(
          {Value: " "},
          {Value: _Item}
       )
    )
     
    Please Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  

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