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 / Using Lookup in matrix...
Power Apps
Answered

Using Lookup in matrix (row & column) for default value

(0) ShareShare
ReportReport
Posted on by 31

In a form to add new data, I have defaults values set in a data source.  I would like to populate the Default value, but I cannot seem to find the syntax of the Lookup formula.

 

My data source (SP) looks like this:

IndustryList

IndustryTopic1Topic2
Industry112
Industry234

 

The topic is known from the data card that is being entered on the form.  The Industry value comes from a previously selected dropdown.

 

I expected to set Default to something like:

Lookup(IndustryList, Industry = ThisItem.Industry, Topic1)

 

However, I am not getting close to whatever syntax the Lookup formula requires and cannot find any documentation, or other community questions.

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

    Hi @Eric_Speicher ,

     

    If you want to set the Default value of the Topic1 field based on the selected Industry value when creating a new record, maybe you could try as follows.

     

    If(Form1.Mode=FormMode.New,LookUp(IndustryList, Industry.Value = DataCardValue2.Selected.Value, Topic1),Parent.Default)

     

    vyujincuimsft_1-1664334232867.png

     

    vyujincuimsft_0-1664334207983.png

    In addition, here is a link for your reference.

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-filter-lookup#syntax

     

     

    Best Regards,

    Charlie Choi

  • Eric_Speicher Profile Picture
    31 on at

    Hello @v-yujincui-msft (Charlie),

     

    Thank you for the response.  For me, Industry.Value did not work (I would receive an error indicating wrong use of a period) and I needed to refer to the value in the dropdown as DropDown.Selected.Industry, for the equality check to work.

     

    I appreciate your thought to make the default value conditional, I changed this to the value being blank rather than the form status.

     

    I further appreciate the link to the documentation, which my searching had failed to discover.

     

    This worked for me: 

     

    If(IsEmpty(Parent.Default),LookUp(IndustryList, Industry = DropDownIndustry.Selected.Industry, 'Topic1'),Parent.Default)

     

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

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard