cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
maries1986
Helper IV
Helper IV

Remove Duplicates

Hi everyone,

 

How do i use the distinct function on the following:

 

Choices([@Milestones].Pcode)

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @maries1986 ,

 

I assume it is a Choices column of Dataverse for Teams, so you will need to modify the Update of the data card if you are using an Edit form:

{Value: PcodeDropdown.Selected.Result}

 

or modify the value in a Patch formula:

Patch(YourTable, BaseRecord, {Pcode: {Value: PcodeDropdown.Selected.Result}, OtherFields: ..., ...})

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
zmorek
Super User
Super User

Distinct(Choices([@Milestones].Pcode), Value)

maries1986
Helper IV
Helper IV

Thanks @zmorek 

 

I updated but now i just have blank values 

Hi @maries1986 ,

 

I assume it is a Choices column of Dataverse for Teams, so you will need to modify the Update of the data card if you are using an Edit form:

{Value: PcodeDropdown.Selected.Result}

 

or modify the value in a Patch formula:

Patch(YourTable, BaseRecord, {Pcode: {Value: PcodeDropdown.Selected.Result}, OtherFields: ..., ...})

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,212)