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 24
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
    7,431 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
    24 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

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