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 / Combining filter(), st...
Power Apps
Answered

Combining filter(), startswith() and a dropdown

(0) ShareShare
ReportReport
Posted on by 50

Hi there,

 

I have a screen in which i have two dropdowns (dropdown_master and dropdown_model)

 

In dropdown_master i have a list of master-id's consisting of 4 numbers identifying the product family.

 

In dropdown_model i have a list of item-id's. The first 4 characters fo the item-id equals a master-id followed by x characters. So the first 4 characteres of the item-id specifies the overall product family while item-id's specify the specific product from within the productfamily.

 

What i want is to filter dropdown_model based on the product family choosen in dropdown_master.  Right now i have the following code in dropdown_model:

Filter(
 '[dbo].[CRONUS TRIMIT W1 Ltd_$Item]';
 Len(No_)>4;
 StartsWith(No_;dropdown_master.SelectedText)
)

But i get an error in startswith() saying that the second argument is not a text-value and therefore illegal.

The len() works fine, so i dont suspect it to be the cause.

 

any suggestions?

 

thx.   

Categories:
  • Verified answer
    JMGCORNATOR Profile Picture
    50 on at

    I have found a solution myself.

     

    I have changed "dropdown_master.SelectedText" for "dropdown_master.SelectedText.value"

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 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard