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 / "Distinct" bug/feature ?
Power Apps
Answered

"Distinct" bug/feature ?

(0) ShareShare
ReportReport
Posted on by 19

Hi, I'm having trouble with a Distinct on a sharepoint list lookup field. I get only one record in the results (I've checked te collection).

table campos.JPGtable reference campos.JPGtable reference campos settings.JPG

 

Table Campos defines the type. Table Aplic-Campos joins those type with other fields from other tables.

The Distinct('Aplic-Campos', IDCampo) returns only one record: "Email".  It should return three: "Email", "Nome" and "NIF".

I've tested with other similar tables (with lookup fields) and the result is the same.

The distinct works fine with a regular field.

Can you help me? 

Thanks.

Categories:
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @nbrites 

     

    for Lookup columns

    you would have to do

     Distinct('Aplic-Campos', IDCampo.Value)

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

     

  • nbrites Profile Picture
    19 on at

    Thanks a lot. I thought I had tested that but apparently not because it worked.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard