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 II
Dual Super User II

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 II
Dual Super User II

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

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (68,467)