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 / Filter out text in one...
Power Apps
Unanswered

Filter out text in one Text Label using another Text Label

(0) ShareShare
ReportReport
Posted on by 127

Hi!

 

I have a Text Label ("Pod Members") that is pulling through a text list of names from SharePoint:

 

Bob Harris

Jo Wright

Sally Kilmer

Thomas Redmond

 

The Text Property is: LookUp('PSMC Cover Pod Members', Title = LookUp('PSMC Cover Pods', Name.DisplayName= User().FullName, Title)
, 'Pod Members2')

 

I want to be able to match the User().FullName up to the text in "Pod Members" and just show the remaining names.

 

IE:

 

User().FullName = Bob Harris

"Pod Members" = 

Jo Wright

Sally Kilmer

Thomas Redmond

 

I have tried a few things but no luck yet. Can anyone help?

Categories:
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @VictorTek ,

    Just a thought:

     Substitute(
     LookUp('PSMC Cover Pod Members', 
     Title = LookUp('PSMC Cover Pods', Name.DisplayName= User().FullName, Title), 
     'Pod Members2'
     ),
     User().FullName,
     ""
    )

    Hope it helps !

  • VictorTek Profile Picture
    127 on at

    That worked! but it leave a gap in my list. Is there a way to close up the gap. If Jo Wright is the User, the above returns

     

    Bob Harris

     

    Sally Kilmer

    Thomas Redmond

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @VictorTek 

    !IsBlank(
     Substitute(
     LookUp('PSMC Cover Pod Members', 
     Title = LookUp('PSMC Cover Pods', Name.DisplayName= User().FullName, Title), 
     'Pod Members2'
     ), User().FullName, ""
     )
    )
  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Also as a thought. I guess we need to replace a double appearance of carriage return char and a new line char with only one. 

    So: 

     

    Substitute( 
     Substitute(
     LookUp('PSMC Cover Pod Members', 
     Title = LookUp('PSMC Cover Pods', Name.DisplayName= User().FullName, Title), 
     'Pod Members2'
     ),
     User().FullName,
     ""
     ),
    Char(13)&Char(10)&Char(13)&Char(10),
    Char(13)&Char(10)
    )

     

    If it not working this way, maybe you need to replace the:

     

    Char(13)&Char(10)&Char(13)&Char(10)

     

     with:

     

    Char(13)&Char(13)

     

    because I'm not sure how the string is build.  

  • VictorTek Profile Picture
    127 on at

    Thanks @Drrickryp  - however that returns "True" as the value in the Text Label

  • VictorTek Profile Picture
    127 on at

    Thanks @Drrickryp  - however that returns "True" as the value in the Text Label

  • VictorTek Profile Picture
    127 on at

    Thanks @gabibalaban I am still getting the space:


    Bob Harris

     

    Sally Kilmer

    Thomas Redmond

     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard