Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Incompatible types for comparation

(1) ShareShare
ReportReport
Posted on by 10
Hello, I need help with a thing,  I need to get different values using different listbox, the problem is that when I select two or more different values, the List start only using the last value clicked. If you have a solution about how to get all the values depending on the clicked values.
 
For example on the video we can see 3 values "Nissan", "Honda" and "KIA", all of these have different codes, in the middle list box, we can see the codes, the problem is that I can't keep all the values whe I select two or three values. 
 
As you can see in here, I'm using this code:
 
Filter('Administración SR1'; Cuenta.Value = ListBox1_3.SelectedText.Value)
 
But I need to use this form, because I need to select more items and the forme selected.Value is just for one:
Filter('Administración SR1'; Cuenta.Value = ListBox1_3.Selecteditems)
 
The problem is that Is incompatible
 
 
 
 
Here's how I actually use it:
  • Verified answer
    Giraldoj Profile Picture
    561 Super User 2025 Season 1 on at
    Incompatible types for comparation
    Hi there,
     
    you can use the In operator with the Filter function, you coude should be something like:
    Filter(
        coll_AdminSR1,
        Cuenta.Value in ListBox1.SelectedItems
    )
    You can find more information and recomendation about filter function here:
     
     
     
    If this helps, please mark it as the solution by clicking "Accept as solution." A "Thumbs Up" would be greatly appreciated if you found the content helpful. Thanks!
    Best,
    LinkedIn:  https://www.linkedin.com/in/jhonatan-giraldo-2b20561b9/
     
  • CU31071525-4 Profile Picture
    10 on at
    Incompatible types for comparation
    .

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard