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 / need unique values on ...
Power Apps
Suggested Answer

need unique values on combo box

(0) ShareShare
ReportReport
Posted on by 14
onstart:ClearCollect(Colkey,ShowColumns(Filter(
            'Global Measures', 
            'Objective Period' in ComboBoxp.SelectedItems),'Key Priority'));
combobox defaultselectedItems:ForAll(Colkey, itobj_KeyPriority)
combobox items:Filter(
    'Key Priorities','Key Priorities (Views)'.'Active Key Priorities')
 
but am getting on combobox is A,A,A,A but i want A unique values in powerapps
Categories:
I have the same question (0)
  • Farah-F Profile Picture
    50 on at
    Try this in OnStart:
    ClearCollect(
        ColKey,
        Distinct(
            Filter(
                'Global Measures',
                'Objective Period' in ComboBoxp.SelectedItems
            ),
            'Key Priority'
        )
    )
    Then set DefaultSelectedItems to:
    Filter(
        'Key Priorities',
        Value in ColKey.Value  
    )
    and make sure your DefaultSelectedItems references Value instead of the old field name.
    This will remove duplicates and show only unique values in the ComboBox.
     
    If my reply helped you fix the issue, you can mark it as a Verified answer so the post is closed and easier for others to find.
    And if it was just helpful in any way, feel free to give it a Like ♥.
  • Suggested answer
    UshaJyothiKasibhotla Profile Picture
    225 Moderator on at
    Hi @RV-13100656-0

    As @Farah-F Said Use distinct Function to get the unique values in Combobox
     
    For Single Select Combo box Use
    SortByColumns(
        Distinct(
            Filter(
                'Global Measures',
                'Objective Period'.Value = ComboBoxp.Selected.Value
            ),
            'Key Priority'
        ),
        "Result"
    )
    For Multi select Combobox Use
    With(
        {
            filteredData:
                Filter(
                    'Global Measures',
                    'Objective Period'.Value in ComboBoxp.SelectedItems.Value
                )
        },
        SortByColumns(
            Distinct(filteredData, 'Key Priority'),
            "Result"
        )
    )


    Hope this Helps
    Usha Jyothi.
  • MS.Ragavendar Profile Picture
    6,088 Super User 2026 Season 1 on at
     
    With(
        {
            _kp: Distinct(
                    Filter(
                        'Global Measures',
                        'Objective Period' in ComboBoxp.SelectedItems
                    ),
                    'Key Priority'
                )
        },
        ClearCollect(
            Colkey,
            AddColumns(_kp, 'Key Priority', Value)
        )
    )
     
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
  • RV-13100656-0 Profile Picture
    14 on at
    how can i hide unchecked values on combo box?

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard