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 / To pass values from ex...
Power Apps
Answered

To pass values from excel to datacontrol based on the logged in user details in the PowerApps form

(0) ShareShare
ReportReport
Posted on by 2,249

Background: I need to fetch values from excel sheet for candidates training status and in my form i have a single line of text field in my new form and it should check the logged in user name with the excel sheet data and fetch the values in the new form training status datacard value dynamically for the respective logged in user 

 

Excel sheet format

 

CandidateName    Emailaddress                Trainingstatus

John                      John@abc.com                Inprogress

Sam                       sam@abc.com                 Completed

 

New form : (canvas appp PowerApps form)

 

Name:  John

Training Status : Inprogress   // This value needs to be captured from the excel based on the logged in user 

Country: US

 

Save  cancel

 

Categories:
  • Tolu_Victor Profile Picture
    197 Super User 2024 Season 1 on at

    Hi ,A simple lookup would provide the data you need
    See below, modify as needed

    Lookup(DataSource, Emailaddress = User().Email).Trainingstatus

      You can display this on a label control or even use it as part of a query in any of your controls

  • Veblitz Profile Picture
    2,249 on at

    Thanks for the inputs.

     

    I copied the below code in visible property of my textbox as per my requirement and got error lookup is unknown or unsupported function.

     

    Lookup(Table1, Emailaddress = User().Email).Trainingstatus
  • Verified answer
    Tolu_Victor Profile Picture
    197 Super User 2024 Season 1 on at

    Hi

    That code will return the "Trainingstatus" of the current logged in user as text or whatever data type your "Trainingstatus" column is

    So if John logs into the app, that code will return "Inprogress" and if Sam logs in, that code will return "Completed"

    So if you want them to view their training status, set the Text property of the label to that code and set visible property to true


    If you want to query on the returned value, for example to show the label only if status is Completed ,
    On the visible property use this code

    Lookup(Table1, Emailaddress = User().Email).Trainingstatus = "Completed"


    That will return a true/false value that the label will now use to display conditionally

  • Veblitz Profile Picture
    2,249 on at

    Thanks.

     

    Is this static way of importing excel in our app and lets say if i want this excel dynamic so whenever status changes we have to re import the excel right.is there any way to make this trainingstatus values is configured dynamically when we update excel in some path for dynamically in powerapps form.is it doable dynamic excel?

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard