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 / Compare Text to a Choi...
Power Apps
Answered

Compare Text to a Choice Column

(0) ShareShare
ReportReport
Posted on by 98

Hello,

I'm having issues with a particular formula where I want to filter a Sharepoint text column based on a another Sharepoint list choice column.

What i'm trying to achieve is simply to display data that concerns the user. Im my example below, a user can have multiple choices, and I need to display the data that matches any of those selections. 

 

Prefenrece Sharepoint list layout: 

=====================================================
User_Preference list 
=====================================================
User (Text Column) / Color_Preference (Choice column) ===================================================== User1 / Red, Green, Blue ----------------------------------------------------- User2 / Green, Blue ----------------------------------------------------- User3 / Blue, Red ----------------------------------------------------- User4 / Blue ----------------------------------------------------- User5 / Green -----------------------------------------------------

Data Sharepoint list layout: 

=========================
User_Data list
=========================
Color (Text)
========================= Blue ------------------------------------------- Green ------------------------------------------- Red ------------------------------------------- Blue ------------------------------------------- Green -------------------------------------------

The formula im trying to achive:

ClearCollect(IdentifiedUser, Filter(User_Preference, User = "User1" ) );
ClearCollect(FilteredData, Filter(User_Data, Color = IdentifiedUser.ColorPreference.Value ));

Where im struggling is that this part of the code:

Color = IdentifiedUser.ColorPreference.Value

How can I filter the color colum so that it returns data that matches any of of the user`s choices?

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    adding in @Chris to assist with this SharePoint question. 

     

    @Anonymous

  • Verified answer
    CP-23071600-0 Profile Picture
    on at

    If the value is a string, you could use the Find, Left, and Mid functions to find the comma and extract the value:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-find

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-left-mid-right

     

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