Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Can_SJ Profile Picture
    25 on at
    Re: 1st Question - New to PowerApps

    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

     

  • Can_SJ Profile Picture
    25 on at
    Re: 1st Question - New to PowerApps

    Yes,

     

    DrpProduct = Apple

    DrpDestination = USA

    DrpOrigin = Argentina

     

    Result:

    Tariff = 2007.99.48.00

    Rate = 12%

  • eka24 Profile Picture
    20,921 on at
    Re: 1st Question - New to PowerApps

    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.

  • Verified answer
    rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at
    Re: 1st Question - New to PowerApps

    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.

     

     

     

  • Sajarac Profile Picture
    3,263 on at
    Re: 1st Question - New to PowerApps

    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? 

  • eka24 Profile Picture
    20,921 on at
    Re: 1st Question - New to PowerApps

    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.

  • Hamed Ghodrat Profile Picture
    37 on at
    Re: 1st Question - New to PowerApps

    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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1