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 function but lo...
Power Apps
Answered

Lookup function but look for Column?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Fellows,

 

I'm currently using a table like this to get my foreign currency data (exchange rate are fake)

 

DateUSDJPYCNY
Jun202011000100
July202011200110

 

It is constantly added, so what I do is to try find last record and get the data based on name of currency.

 

Is it possible to slice data based on column?
I tried the following with no luck

 

Last(Table_ForeignCurrency).Variable_Currency

 

 

Best Regards,

Hanson

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Anonymous 
    Yes, you can slice the table based currency as a variable.  Do it like this.

    Switch(
     Variable_Currency,
     "USD", Last(Table_ForeignCurrency).USD,
     "JPY", Last(Table_ForeignCurrency).JPY,
     "CNY", Last(Table_ForeignCurrency).CNY
    )


    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard