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 Combo Box Sw...
Power Apps
Answered

Help with Combo Box Switch Formula

(1) ShareShare
ReportReport
Posted on by 789
Hello Everyone,
 
I have two SharePoint List, two Combo Boxes and I want to concatenate the options from SPList2 based on the Options selected in SPList1.
All the Choice Columns are Multi select.
 
 
Example:
When you select Option2 & Option3 in SPList1 then with Switch formula you are able to select Option4, Option5 Option6, Option7, Option8 and  Option9
 
I am currently using this Switch formula on the second Combo Box
Switch(ComboBox1.Selected.Value, "Name1",Choices([@'SPList2'].column_1), "Name2",Choices([@'SPList2'].column_2),"Name3",Choices([@'SPList2'].column_3))
 
I hope someone can help.
Categories:
I have the same question (0)
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
     
    How about you try this code in the first Combo Box in the OnChange property:
    Clear(colFinalOption);
    ForAll(
        Self.SelectedItems,
        Collect(
            colFinalOption,
            Switch(
                Value,
                "Option1",
                RenameColumns(SPList2.ColumnChoice1,ColumnChoice1,Choice),
                "name1",
                RenameColumns(SPList2.ColumnChoice2,ColumnChoice2,Choice),
                "name2",
                RenameColumns(SPList2.ColumnChoice3,ColumnChoice3,Choice)
            )
        )
    )
    colFinalOption is then the Datasource that you want to put into your second Combo Box.
    You have to rename the columns, otherwise your table will have empty records. 

    If this helped solve your question, consider accepting it as Solution so others can find it as well.  You can accept several posts as Solution. 
    If it helped in any other way consider giving it a like so we can keep supporting eachother. 
  • Caleb62881177 Profile Picture
    789 on at
    @DBO_DV - I am not sure what Choice after the comma.
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at
    This will just be the new name of the Column I named it Choice. This way I hoped it' clear whtas comming in there: The choice options.
     
    You have to rename the columns, otherwise your table will have empty records. 
     
    Just test it let me know if it doesn't work. 
     
    If this helped solve your question, consider accepting it as Solution so others can find it as well.  You can accept several posts as Solution. 
    If it helped in any other way consider giving it a like so we can keep supporting eachother. 

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard