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 / Lookup an excel table
Power Apps
Unanswered

Lookup an excel table

(0) ShareShare
ReportReport
Posted on by 70

Hi All,

 

I am having a little trouble trying to get results from an excel table stored on OneDrive,

I have a date picker to select the date (DataCardValue3) and a dropdown box t select the name (dd_DC), when these boxes have data entered I want PowerApps to lookup my excel table and return the corresponding result, I just cant get it to work.

 

edymac2_0-1712949127281.png

Thanks in advance

 

Ed

Categories:
I have the same question (0)
  • Gochix Profile Picture
    1,935 Moderator on at

    @edymac2 ,

     

    The problem here is that the table header is a specific date.
    If you wish the data to be displayed in the gallery then you can't tell the Filter function to -> get me the data where name is the one that is selected from dropdown menu and the DATE is the one that datepicker is set to. The column DATE is missing in your case and each column is a specific date. 


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • edymac2 Profile Picture
    70 on at

    Hi @Gochix,

     

    I don't want it to be displayed in a gallery, I want a label to display the result, 

    do I need to set the table up differently ?

  • Gochix Profile Picture
    1,935 Moderator on at

    @edymac2 ,

     

    Even then, ideally you want to have 3 columns. 1) Name 2) Date 3) Value. Then you can set the desired date and Name to pull the Value as a Result.

    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • Verified answer
    edymac2 Profile Picture
    70 on at

    Hi @Gochix,

     

    Unfortunately my table will have over 350 columns as its a yearly rota,

    I have figured out away to do it but its a massive switch formula.

     

    Switch(
        DataCardValue3.SelectedDate,
        DateValue("01/04/2024"),
        LookUp(
            SAndWRota,
            Name = dd_DC.Selected.Value,
            '01/04/2024'
        ),
        DateValue("02/04/2024"),
        LookUp(
            SAndWRota,
            Name = dd_DC.Selected.Value,
            '02/04/2024'
        ),
        DateValue("03/04/2024"),
        LookUp(
            SAndWRota,
            Name = dd_DC.Selected.Value,
            '03/04/2024'
        )
    ) and so on.
    This gives me the exact result I am looking for but is there an easier way to write this formula ?, could I put the date columns in a collection or maybe use a variable ?
     
    Ed
     

     

     

  • Gochix Profile Picture
    1,935 Moderator on at

    @edymac2 ,

     

    You can't use a variable here as the LookUp function will just display the variable instead of the actual data needed. At this point if you can't change the Table layout then I believe you will not going to be able to get the desired outcome. Unless, somebody else has a solution for you.


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard