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 / In grid view gallery w...
Power Apps
Answered

In grid view gallery want to view distinct in dropdown

(0) ShareShare
ReportReport
Posted on by 101

i have created gallery contains my skills, were i view, edit or add my skills.

karthik26_0-1691129859748.png

once user added a skill to his profile , i want to hide the particualr to hide for next line items.

example. in above iamge SAP MM added two times in profile. i dont want to happen this.

 

iam using single sharepoint list as a source contains all users skills and filtered the gallery using user() to view his skill. 

 

In skill dropdown itemsproperty = If(drp_prskillgrp.Selected.Value=Blank(),Sort(Distinct(Knowledge_matrix,Skill),Value,SortOrder.Ascending),Distinct(Filter(Knowledge_matrix,Skill_Group=drp_prskillgrp.Selected.Value),Skill))

 

In gallery items property,

Sort(Filter(Knowledge_matrix,varreset,Email=User().Email||'Person _Name'.DisplayName=Office365Users.MyProfile().DisplayName),Modified,SortOrder.Descending)

Categories:
  • karthik26 Profile Picture
    101 on at

    need help on above topic

  • Verified answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @karthik26 

    I believe achieving that directly might not be feasible, but there is an alternative approach involving the utilization of a collection and the Reset function.

    OnChange Property of Skill dropdown :

     

     ClearCollect(
    collection,
    ForAll(
    Gallery.AllItems,
    {
    Skill:dropdown.Selected.Value
    }
    )
    );


    If(
    CountRows(
    Filter(
    collection,
    Skill = Dropdown.Selected.Value
    )
    ) > 0,
    Reset(Dropdown) &
    Notify(

    "The selected skill has already been selected.",
    NotificationType.Error
    )
    );

    • It creates a collection of skills selected from a "Gallery" and stores them in the "collection" variable.
    • It checks if the selected skill from a "dropdown" control already exists in the "collection".
    • If the skill is already in the collection, it clears the "dropdown" selection and displays an error notification.


    Thanks!

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • karthik26 Profile Picture
    101 on at

    hi ,

    i have followed same and created collection,

    ClearCollect(colskill,ForAll(profile_gallery_1.AllItems,{Skill:drp_prskill_1.Selected.Value}));

    If(CountRows(Filter(colskill,Skill=drp_prskill_1.Selected.Value))>Blank(),Reset(drp_prskill_1)&Notify("The selected skill has already been selected.",NotificationType.Error))

     

    But i select any skill it is showing error(The selected skill has already been selected). i have filtered gallery with user data.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard