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 / How I can use Set vari...
Power Apps
Answered

How I can use Set variable from lookup?

(0) ShareShare
ReportReport
Posted on by

Set(varLookup,

If(IsBlank(LookUp('list_sharepoint', No = Value(DataCardValue39.Text),'Column')),

"f",

LookUp('list_sharepoint', No = Value(DataCardValue39.Text),'Column')));

I want to convert type of varLookup to Text.

Categories:
I have the same question (0)
  • v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @mmxupp,

    What is the type of 'Column' in your list?

     

    Best Regards,

    Kyrie

  • mmxupp Profile Picture
    on at

    @v-mingkz-msft Text

  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on at

    @mmxupp,

     

    Set(varLookup,
    
    If(IsBlank(LookUp('list_sharepoint', No = Value(DataCardValue39.Text),'Column')),
    
    "f",
    
    LookUp('list_sharepoint', No = Value(DataCardValue39.Text),'Column'))));

     

    I did some test according to your description.

    You should be missing a parenthesis at the end of your expression and the varLookup will be text type.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard