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 a list and fetc...
Power Apps
Answered

lookup a list and fetch a related column text based on a selection of another column selected by dropdown box

(0) ShareShare
ReportReport
Posted on by 61

I have a  vendor list "leverantor"with 2 columns vendor name and organization number 

I Have a parent list for my invoice called rekvisition that has a lookup column ""LeverantörNamn" . I need to create a new field Column LevOrgNr in parent list  be populated with org number based on a selection of a leverantornamn "combobox "

in power app page create new invoice 

se bilder

vendor org nr.png
create field org nr.png
invoice parent list.png
Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Awad0367,

    If you want to populate the LevOrgNr with organization number from leverantor based on leverantornamn Combo Box selected, you should define the one-to-one correspondence between the two columns, for example, if the leverantor is ALINGSAS BILDELAR, the organization number should be 1001, just as below:

    vqiaqimsft_0-1656558252773.png

    So please input the corresponding organization number within the leverantor list, then you could populate the the LevOrgNr name(If it is a text column type) by setting a default property of the textinput control as below:

    LookUp(Leverantor,Leverantor=ComboBox.Selected.Value).Organizationname

     

  • Awad0367 Profile Picture
    61 on at

    Thank you for your help, I did figure it out exact as you did but column name worked with Title instead for Leverantor. 

    I have an issue with my invoice number variable that generate a number when a new invoice button at start is pressed. I need this number to decrement IF the new form is not submitted so that I do not consume that numeber in vain. Here is the variable 


    Set(
    varRkv;
    First(
    Filter(
    'Rekvisition nummer';
    ID =1
    )
    ).Title
    );;
    UpdateIf(
    'Rekvisition nummer';
    ID = 1;
    {
    Title: Concatenate(
    "RikvNo-";
    Text(
    Right(
    varRkv;
    5
    ) + 1
    )
    )
    }
    )

    Se the image where the new number is generated 

    orgnummer solved.png
    if no save decrement variable .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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard