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 / Show Hide fields from ...
Power Apps
Answered

Show Hide fields from Lookup field from different table

(0) ShareShare
ReportReport
Posted on by 416

 

Hi All,

 

@v-xiaochen-msft your solution very well.

https://powerusers.microsoft.com/t5/Building-Power-Apps/Show-fields-depending-on-dropdown/td-p/821137

  • In my Form, I have main table called Request which has Cost Recoverable, Customer Name and Customer PO Number fields with no lookups as shown:

    aaroh_bits_0-1612875022677.jpeg

     

 

  • I also have a couple of lookups such as Budget Status, Expense Nature etc. for this Request form as shown,

    aaroh_bits_1-1612875022683.jpeg

     

  • For E.g. Request table has lookup for Expense Claim and this table has 4 entries in Expense Nature table

    aaroh_bits_2-1612875022687.jpeg

     

    and Budget Status table as shown:

    aaroh_bits_3-1612875022690.jpeg

     

  • In Power Apps Request form, I can pull this information as shown:

    Expense Nature Drop Down
    aaroh_bits_4-1612875022696.jpeg

     

    Budget Status drop down

aaroh_bits_5-1612875022700.jpeg

 



 

  • Now as per business requirement,
    • if user selects Recoverable – Opex from Expense Nature drop down,  then budget status drop down  must automatically change to Recoverable, 
      Capex Category dropdown to NA,   
      Repair & Maintenance Category dropdown to NA, 
      Term Contract dropdown to Yes


    •   If user selects Opex from Expense Nature drop down,  then budget status drop down  has option to choose 3 items (Budgeted, Un-Budgeted, Recoverable), 
    • Capex Category dropdown from another lookup,   
    •  Repair & Maintenance Category to NA
    • Term Contract  to No
  • So I followed the same technique to use Expense Nature Dropdown OnChange property.

    aaroh_bits_6-1612875022711.jpeg
  • But when I tried use Default property, instead of dropdown.Selected.Value property, I had to use lookup field which is throwing error.

    aaroh_bits_7-1612875022725.jpeg

     

  • Any suggestion how to pull data this logic with lookup? Thanks in advance.
    @v-yutliu-msft 
    @jinivthakkar  @v-xida-msft

  •  
Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @aaroh_bits ,

     

    According to your description, I did a test for you.

    1\ This is my table ‘Budget Status’

    v-xiaochen-msft_0-1612933318558.png

     

    2\ This is my table ‘Expense Nature’

    v-xiaochen-msft_1-1612933318574.png

     

     

    3\ This is my table ‘Request’

    v-xiaochen-msft_2-1612933318627.png

     

     

    4\ ‘DataCardValue2’ is a combo box control . It’s a lookup column. Its Items property is:

    Choices(Requests.'Budget Status')

     

    5\ ‘DataCardValue3’ is a combo box control . It’s a lookup column. Its Items property is:

    Choices(Requests.'Expense Nature')

     

    6\ Set DataCardValue3 ‘s OnChange property to:

    Reset(DataCardValue2)

     

    7\ Set DataCardValue2 ‘ DefaultSelectedItems property to:

    If(DataCardValue3.Selected.Name="Recoverable - Opex",Filter(Choices([@Requests].crba2_BudgetStatus),Name="Recoverable"),ThisItem.'Budget Status')

     

    8\ The result is as follows:

    AAA.gif

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

  • aaroh_bits Profile Picture
    416 on at

    @v-xiaochen-msft ...you are so so awesome!!! ..

     

    Thank you so much for your help 🙏

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard