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 / Combobox: DefaultSelec...
Power Apps
Unanswered

Combobox: DefaultSelectedItems regarding two conditions

(1) ShareShare
ReportReport
Posted on by 860

For my Sharepoint list, I have this column that feeds its information from a Combobox. The Items property is a big Excel table that can have many coincidences, where the only thing that changes is ListPrice and Country. Like this:

Comparison.png

The Combobox should display ListPrice. But the table should be filtered from ArtNumber and Country. The problem I have is that I have maaaaaaaaaaaany Sharepoint columns/comboboxes like this. So if variables or anything too complex like that can be avoided, would be awesome. Meaning, I would like that each individual combobox did its own thing.

I thought I could acheive the filtering I need with two codes: editing Items and DefaultSelectedItems property of each comboBox:

ITEMS: Filter(EXCELtable; ArtNumber = Label1.Text)

DEFAULTSELECTEDITEMS: LookUp(EXCELtable; Country = DataCardValue5.Selected.Value)

Label1.Text is how the user inputs each ArtNumber. And DataCardValue5 is how user inputs the country.

This was working how I wanted it to, but then randomly it stopped working. After, I tried swapping the ArtNumber and Country between the Items and DefaultSelectedItems to see if it will fix it, but no. 

Any ideas? Maybe a formula for DefaultSelectedItems that boths filters the ExcelTable and LookUps specifically? This way I'll get the ArtNumber and country specific item.

 

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @WorkingRicardo 

     

    try this:

    Filter(
     EXCELtable, 
     ArtNumber = Label1.Text, 
     Country = DataCardValue5.Selected.Value
    )
    

     

    defaultselecteditems:

    LookUp(
     EXCELtable,
     ArtNumber = Label1.Text && Country = DataCardValue5.Selected.Value
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • WorkingRicardo Profile Picture
    860 on at

    Hello @mmbr1606  ty for your reply.
    Ohh, I'm getting errors for both formulas: for the first ITEMS formula: Only single 'eq', 'ne', 'contains', 'startswith' or 'endswith' is currently supported
    And the second DefaultSelectedItems: I'm getting a delegation warning for large data (this would be the case of large data)

    So dunno how to apply this. Any suggestions?

  • WorkingRicardo Profile Picture
    860 on at

    @mmbr1606 So far I got the job done creating many collections like so:

    ClearCollect(ColArticle1; Filter(EXCELTABLE; ArtNumber = Label1.Text));;
    ClearCollect(ColArticle2; Filter(EXCELTABLE; ArtNumber = Label6_1.Text));;
    ClearCollect(ColArticle3; Filter(EXCELTABLE; ArtNumber = Label6_2.Text));;

    Then DefaultSelectedItems of each combobox:

    LookUp(ColArticle1; Country = DataCardValue5.Selected.Value)

    But maybe this is too convoluted? Let me know if you can think of different solution 🙂

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard