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 / Get words from a colum...
Power Apps
Answered

Get words from a column in SP (text) as a filter into a combobox

(2) ShareShare
ReportReport
Posted on by 943 Season of Giving Solutions 2025
Hi!
 
So I have 3 combo boxes, the first one get choices from a column to filter the combobox "words" and the third combobox. The third combobox is the title of the item, and it should appear when the first combobox is selected (even if "words" is blank") but also filter if combobox "word" is selected.
The word item: 
 
With(
    {
        _allRecords: Filter(
            'Circuits_territorials_03_2026',   //Your SharePoint List - Please replace if it's wrong
            UP_Origen.Value = ComboBox_Origen1_1.Selected.Value //AGA Combobox name - Replace 'AGAComboBox' your combobox control name
        )
    },
    SortByColumns(
        Distinct(
            _allRecords,
            Paraules_clau //Your SharePoint Column Name - Which you want to saw as selection
        ),
        "Value",
        SortOrder.Ascending
    )
)
 
The SortByColumns is wrong:
 
The Title item:
 
With(
    {
        _allRecords: Filter(
            Circuits_territorials_03_2026,   //Your SharePoint List - Please replace if it's wrong
            UP_Origen.Value = ComboBox_Origen1_1.Selected.Value //AGA Combobox name - Replace 'AGAComboBox' your combobox control name
        )
    },
    SortByColumns(
        Distinct(
            _allRecords,
            Nom_Circuit //Your SharePoint Column Name - Which you want to saw as selection
        ),
        "Value",
        SortOrder.Ascending
    )
)
 
Origen is first combobox, Paraula clau is words (3rd column SP) & nom circuit is Title (first column SP).
 
The column in the SP looks like this:
It is possible from the words in 3rd column to filter the first?
The idea is, they write words in the second combobox (third column in SP) which will filter the options in the third combobox (first column in SP)
The gallery is getting an error in paraules clau (text, 3rd column SP/2nd combobox):
Categories:
I have the same question (0)
  • timl Profile Picture
    37,214 Super User 2026 Season 1 on at
     
    With that error, can you hover the mouse over the red underlined text beneath 'SortByColumns' and 'Value', and post the error text that you see there?
  • Verified answer
    11manish Profile Picture
    3,333 on at
    In my first review, to fix the error in your combo boxes and gallery, you need to address how the Distinct function interacts with SortByColumns. When you use Distinct, it returns a single-column table where the column name is always "Value" (or sometimes "Result" in older versions)
     
    Try below : 
    With(
        {
            _allRecords: Filter(
                'Circuits_territorials_03_2026',
                UP_Origen.Value = ComboBox_Origen1_1.Selected.Value
            )
        },
        Sort(
            Distinct(_allRecords, Paraules_clau),
            Value,
            SortOrder.Ascending
        )
    )

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard