web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Make combobox results ...
Power Apps
Answered

Make combobox results not case sensitive

(1) ShareShare
ReportReport
Posted on by 10

Hi everyone,

 

I have a form I use for receiving at work, one of the fields the receivers populate is the manufacturer which is a text input field and which writes to a standard text column in Dataverse. In another app I use a combobox to filter items in a gallery based on the manufacturer. The combobox displays all the manufacturers in this column, but depending on how the receiver enters it, a manufacturer can show up multiple times based on if it is all caps, all lower, or proper case. Is there a way to have the combobox just display one instance per manufacturer and combine all case combinations? If the combobox could, i assume i could use that to filter the gallery with the “in function as opposed to matching the column to the combobox.selected.value?

Categories:
I have the same question (0)
  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    You should be able to fix this by wrapping the function Upper or Proper into the combobox. Are you using Distinct for the Items property currently?  The new formula would be something like this:

     

    Sort(Distinct(YourData.Manufacturer,Upper(Manufacturer))),Result)

     

  • Ziolno Profile Picture
    10 on at

    I was using the distinct function but not proper/upper.

     

    This did make all the selections either proper or upper, but for some reason it is still listing multiple of the same spelling. 

     

    my formula is now as follows:

     

    Sort(Distinct(collection,Proper(Manufacturer)),Value,SortOrder.Ascending)

  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    That's strange...  I just tested the exact formula you mentioned and it works perfectly for me.  Please see below the raw data displayed in a table, and the ComboBox results:

    Rusk_0-1679338514903.png

    Rusk_1-1679338532913.png

     

    Are you sure there's not something else going on in your data?  Is there a space or something after the duplicate "Arhaus"?

  • Ziolno Profile Picture
    10 on at

    I agree that it is odd, I have not finished checking all of the rows that have this vendor listed as you may be correct and that may be the case. 

    as I do not have control over what they enter as we have many clients with various vendors so a simple pick from list will not do, is there a way to have a catchall that would avoid extra spaces in a line of text?

  • Verified answer
    Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    Let's try this, adding in the Trim function (https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-trim):

    Sort(Distinct(collection, Proper(Trim(Manufacturer))), Value, SortOrder.Ascending)
  • Ziolno Profile Picture
    10 on at

    Perfect this did it! Thanks so much!

  • LC-23100906-0 Profile Picture
    2 on at
    Dear all!

    One doubt:
     
    When I don't  apply:
    Sort(Distinct('[dbo].[Sujetos]';Proper('[dbo].[Sujetos]'[@Nombre]));Value;SortOrder.Ascending)
     
    My list is the next one looking for "Luis":

     
     
    But when I apply it is as follows:
     
     
    Do you know why?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard