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 / LookUp SharePoint List...
Power Apps
Answered

LookUp SharePoint List with multiple text columns to return result text to text label

(0) ShareShare
ReportReport
Posted on by 68

Hello everyone!

 

I'm hoping you can help 🙂

 

I have a SharePoint list, all single line text columns that are every combination of guidance I need dependent on which dropdowns are selected. Roughly 200 different combinations, so a cascade was needed! I've hooked this (SharePoint List2) into the relevant dropdowns inside SharePoint List1 form - so two different data sources at play here. 

 

If(IsBlank(LookUp('SharePoint List2', 'Text Column' = DataCardKey69.Text && 'TextColumn 1' = DataCardValue65.Selected.Value && 'Text Column2' = DataCardValue4.Selected.Value && TextColumn3 = Dropdown9.Selected.Value).Guidance), "No Guidance")

 

This is returning the correct string when I click on each component of the function - I've blocked it out, but 'guidance' is returning the correct string also:

RewriteScript_1-1712856687467.png

 

But, no text shows in the text label! I feel like I'm going mad. Only when no dropdown selections are made does it return the "No Guidance" as per the If(IsBlank(. 

 

If someone could shed some light on this, I would be so, so thankful

 

Thank you, 

Rewrite

 

Categories:
  • Verified answer
    DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @RewriteScript 

    You don't have an else condition. You are telling the text box to only display "No Guidance" when your Lookup is empty. You're not outputting guidance if the Lookup is not empty.

    Try:

    With(
     {
     g_lookup: LookUp(
     'SharePoint List2',
     'Text Column' = DataCardKey69.Text &&
     'TextColumn 1' = DataCardValue65.Selected.Value &&
     'Text Column2' = DataCardValue4.Selected.Value &&
     TextColumn3 = Dropdown9.Selected.Value
     ).Guidance
     },
     If(
     IsBlank(g_lookup), 
     "No Guidance",
     g_lookup
     )
    )



  • RewriteScript Profile Picture
    68 on at

    DJ_Jamba

     

    Thank you, so, so, so much for this! And of course! An else condition - why wasn't I seeing that! This is wonderful. Your solution sorted the text label right out 😄

     

    Thanks again, 

    Rewrite.

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    You're welcome!

    d(-_-)b

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard