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 / 1st Question - New to ...
Power Apps
Answered

1st Question - New to PowerApps

(0) ShareShare
ReportReport
Posted on by 25

Hello Administrator I guess?

 

I am new to power apps and I was developing my first app and found the first challenge:

 

In my app the user select the product, the product origin and the product destination, what I want is to retrieve the Duty date based on those 3 conditions.

 

i.e

DrpProduct = Apple

DrpDestination = USA

DrpOrigin = Argentina

 

Result:

Tariff = 2007.99.48.00

Rate = 12%

 

I don't know if this is the correct excel table structure or what is the best method to get this data along with the formulas.

 

This is a sample of my data:

 

Any help will be greatly appreciated. 

 

Can_SJ_0-1600634526031.png

 

Categories:
I have the same question (0)
  • Hamed Ghodrat Profile Picture
    37 on at

    Hi @Can_SJ 

    Please read the following document and write back if you could not solve the issue.
    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup
    My recommendation is to use the filter as you may receive multiple records as a result of your query.
    If the result with the combination of your filter is unique, then you can use lookup.
    Using the First(Filter()) will also give you a unique answer but I don't recommend it because of performance issues.

    Good luck
    Max

  • eka24 Profile Picture
    20,925 on at

    Welcome to the community. There's a lot of support here to help you achieve your aim.

    First of all on your structure, I would suggest you include and additional Column for ID, if it not there already.

     

    Then use this formula to retrieve the Duty Date;

     

    LookUp(TableName, IDColumn= Dropdown1.Selected.Value,DutyDateColumn)

     

    Am assuming that user select the options from a Dropdown.

     

    Give it a try and give feedback.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Sajarac Profile Picture
    3,284 on at

    Wow, thank you very much for your prompt response, I was not expecting a Sunday response. I don't have an ID column but I could definitely ADD one or move my list to a share point.

     

    But I don't quite understand the formula. So, you say just with that formula and the 3 conditions the user can identify the value? 

  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi there

     

    with your Source Being "yourSource" you can lookup the results you seek.

    Set(varGetTarrif,lookup(yourSource, PRODUCT = DrpProduct.selextedtext.value && DESTINATION =  DrpDestination .selectedtext.value && ORIGIN = DrpOrigin.selectedtext.vale, TARRIF));

    Set(varGetRate,lookup(yourSource, PRODUCT = DrpProduct.selextedtext.value && DESTINATION =  DrpDestination .selectedtext.value && ORIGIN = DrpOrigin.selectedtext.vale, GENERAL))

     

    now set the labels text field to varGetTarrif for tarrif and another label to varGetRate for the rate.

     

    the controls for the selection are drop down inputs. there are other ways to do this as well using a collection, the lookup is a good way to start.

     

     

     

  • eka24 Profile Picture
    20,925 on at

    That other reason I suggested you add an ID Column to identify the record. Since they are on the same row, the lookup function will pull the corresponding duty date. 

    Where are you selecting the orgin from,  Dropdown?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Can_SJ Profile Picture
    25 on at

    Yes,

     

    DrpProduct = Apple

    DrpDestination = USA

    DrpOrigin = Argentina

     

    Result:

    Tariff = 2007.99.48.00

    Rate = 12%

  • Can_SJ Profile Picture
    25 on at

    Hi there, sorry to bother you but I can not get this function to work properly:

     

    My dropdows are:

    DropProduct = Apricot

    DropDest = USA

    DropCountry = Turkey

     

    I would like to see in two labels

     

    Tariff = 0811.90.80.80

    Rate = 14.50%

     

    Any help please?

     

    Can_SJ_0-1600959095591.png

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard