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 help writing a fx...
Power Apps
Answered

Need help writing a fx with clearcollect and distinct

(0) ShareShare
ReportReport
Posted on by 61

Hello Community

I have the following table: (eksample)

Column1Column2Column3
AppleRedid: 46464646
AppleRedid: 54846468
OrangeOrangeid: 98498489
BananaYellowid: 98494894


I want to ClearCollect this table into a collection - However i only want the distinct value bases on Column1 and Column2

My goal is to get this collection:

Column1Column2
AppleRed
OrangeOrange
BananaYellow

 

I have been having issue finding a way to make a sulotion. Can anyone help?

Categories:
  • Verified answer
    JohnMarkPerez Profile Picture
    61 on at

    Sulotion:

     

    ForAll(
     Distinct(
     YourDataSource,
     TheNameColumn
     ),
     LookUp(
     YourDataSource,
     TheNameColumn= Value
     )
    )

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard