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 / 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 301 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 297 Most Valuable Professional

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard