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

Distinct function for combobox is populating blanks

Hey guys, im trying to do a simple thing - I have a SP List in which the "Title" column have some duplicate values.
In my app, i would like to populate a combobox with all the UNIQUE "Title" values using the Distinct function, but when im doing it, im getting only blanks:

Barak_S_1-1611485537632.png

Barak_S_2-1611485555662.png

Barak_S_3-1611485566789.png



Any idea why and how can i fix this?

**BTW the "Title" column is text.

 

Thanks

15 REPLIES 15

Hallelujah!!!!

Hi Warren...I know the thread is old but let say....

Distinct(dbName, someId) is the objective

Using your solution we say...Distinct(dbName,someId).Result.  The problem then becomes saving the selected item by someId.  How can we achieve this?  If you use .Result the display and search field are automagically set to "result"

Hi @tonykiefer ,

Like this

RenameColumns(
    Distinct(
        dbName,
        someId
    ),
    "Result",
    "someId"
)
tonykiefer
Super User
Super User

@WarrenBelz Thanks for the reply...I didn't think of using RenameColumns.  That's pretty cool!

Thanks for this advice! It fixed my problem

Nice Job Warren, every now and then I come across one of your anwers and they never fail me, thanks Sir.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,258)