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 Apps
Unanswered

Distinct Error

(0) ShareShare
ReportReport
Posted on by 10

Hi, i am just trying to perform the basic function in powerapps for distinct. I do not understand why the error keep showing expected text/number value?  Appreciate your helps...

 

1) My errors : the error already popped once i key the source list. Can anyone tell me what's going on? For DEFAULT , it request Text value. For HEIGHT , it request number value. 

 

Phoebe_2-1626306994016.png

Phoebe_3-1626307024806.png

Phoebe_4-1626307083091.png

Phoebe_5-1626307095353.png

 

 



I have 2 list. 

1st list = all single line text

 

Phoebe_0-1626306924782.png

 

2nd list = all single line text

 

Phoebe_1-1626306949766.png

 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Phoebe 

    When you use Distinct(datasource, field), it produces a single column table and renames the column to "Result".

    That is quite useful when you are using it as the Items property of a dropdown control.  A typical scenario would be to create a gallery and a dropdown control filter it.  In that case, you would have Distinct('SOURCE LIST", CSA) as the items property of a dropdown named Dropdown1 and 

     

    Filter('SOURCE LIST', CSA = Dropdown1.Selected.Result) 

     

    as the Items property of the gallery or datatable.   If you wanted to sort the dropdown alphabetically, then its items property would be 

    Sort(
     Distinct(
     'SOURCE LIST', CSA
     ), Result
    )
  • Phoebe Profile Picture
    10 on at

    Hi @Drrickryp 

    Thanks for your help. Pardon me - i am very new to powerapps , could u help me see if i created correctly for gallery like below?

     

    Phoebe_1-1626311476285.png

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Phoebe 

    I can't tell without the Items properties of the gallery and the dropdowns

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard