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 / Unabel to convert tabl...
Power Apps
Unanswered

Unabel to convert table type to text in filter function

(0) ShareShare
ReportReport
Posted on by 226

text conversion is not working. Assistance with syntax. The examples provided are not successful. Type mismatch persists. ProjType is a table and the dropdown4.selected.title of text.

 

Filter(BillngTsks, ProjType.value=Dropdown4.Selected.Title)

 

Different variations I have tried:

 

Filter(BillngTsks, Text(ProjType.value)=Dropdown4.Selected.Title)

Filter(BillngTsks, ProjType.value.Text=Dropdown4.Selected.Title)

etc. etc.

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

    I'm a bit confused... you are filtering the data source BillngTsks.  What is it you are trying to do with the ProjType table?  You can't filter a table by another table

  • jv123 Profile Picture
    226 on at

    I'm filtering a table (billingtsks) where the column projType value is equal to a drop-down value. 

  • jv123 Profile Picture
    226 on at

    I'm filtering a table (billingtsks) where the column projType value is equal to a drop-down value. 

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

    I see!  Thanks for the additional info.  First make sure the dropdown shows only the value you are trying to lookup.

     

    Dropdown4 Items

     

    ShowColumns(BillngTsks, "ProjType")

     

    Now the filter can be

     

    Filter(BillngTsks, ProjType = Dropdown4.Selected.ProjType)

     

     

    Here is the result when I tested it:

    Rusk_0-1670521104047.png

     

  • jv123 Profile Picture
    226 on at

    Ok I didn't get past the first filter. When I use:

    ShowColumns(BillngTsks, "ProjType")

     There is no error but nothings shows.

    The Projtype column is a choice column so maybe that is the problem with this solution and a different syntax is needed.

     

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

    For a choice column, try 

    Choices([@BillngTsks].ProjType)
  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    Hi @jv123 

     

    Ok I was able to test this.  For your dropdown use:

    Choices([@BillngTsks].ProjType)

    The problem with the choice column is that it returns a table (the ID and the value).  So we need to look for that value only.  For your filter try this:

    Filter([@BillngTsks],ProjType.Value = Text(Dropdown4.Selected.Value))

     

    I tested this with a choices column and it worked to filter based on the dropdown 👍

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard