cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nbrites
Frequent Visitor

"Distinct" bug/feature ?

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.

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Dual Super User
Dual Super User

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

 

View solution in original post

2 REPLIES 2
RezaDorrani
Dual Super User
Dual Super User

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

 

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

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,469)