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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Incompatible types for...
Power Apps
Answered

Incompatible types for comparison record, text

(1) ShareShare
ReportReport
Posted on by 83

Hi there,

 

i am sure this is just a minor thing for you but i tried several options and failed miserable:

 

Filter(portfolio_selection,´'cartridge'=CartridgeSelector.Selected.Value)

 

This filter produces the error message incompatibel types. "Cartridge" is a column in a SharePoint list configured as choice. CartridgeSelector is a combo box working with text. 

 

I am very thankful for your support!

 

Best regards

 

Johannes 

Categories:
  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    I think the issue might be the items property of CartridgeSelector needs to reference the choice column. could you share what the items property is.

     

    if there is no choice that matches the needs of this combobox what happens if you try:

     

    Filter(portfolio_selection,´Text('cartridge')=CartridgeSelector.Selected.Value)

  • joroehr Profile Picture
    83 on at

    The item property of the combo box is: 

    ["1.0 ml","3.0 ml", "1.0 ml dual chamber","no cartridge"]

     

    Exactly the same typing like in the SharePoint choice column. 

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    what happens when you make the items:

     

    Choices(portfolio_selection.´'cartridge')

     

    also i am not sure if you need the ' around cartridge but you added them so i kept them in case.

  • joroehr Profile Picture
    83 on at

    Unfortunately this is not working as expected. I also receive a delegation warning, that the Filter might not work correctly on large data sets.

     

    Filter(portfolio_selection,Text('cartridge')=CartridgeSelector.Selected.Value)

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    What if you make the Items of CartridgeSelector into:

     

    Choices(portfolio_selection.´'cartridge')

     

    and left your filter as:

    Filter(portfolio_selection,´'cartridge'=CartridgeSelector.Selected.Value)

     

    i highlighted in red .Value as sometimes it is needed, sometimes it isnt and sometimes it is called something elselike .cartridge

  • joroehr Profile Picture
    83 on at

    At least the CartridgeSelector change worked. It grabbed the choices from the SharePoint list.

     

    If i now change the Filter to:

     

    Filter(portfolio_selection,'cartridge'=CartridgeSelector.Selected)

    I receive the error message that there are incompatible types record, record

     

    If i change it to
    Filter(portfolio_selection,'cartridge'=CartridgeSelector.Selected.Value)

    we are back to the record, text issue

     

    if i change it to 

    Filter(portfolio_selection,'cartridge'=CartridgeSelector.Selected.cartridge)

    Its record,error message

     

  • Verified answer
    AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    I just booted up powerapps to double check the sharepoint formatting i usually use (dataverse and sometimes SQL)

     

    the filter should be:

    Filter(portfolio_selection,'cartridge'.Value=CartridgeSelector.Selected.Value)

  • joroehr Profile Picture
    83 on at

    There you go! Thanks a lot for your support here. Now it works as it should work!

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    You are very welcome and I am happy to help 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard