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 / How to display data fr...
Power Apps
Answered

How to display data from one card based on data selected in another card in the same form. Both items of data held in the same Sharepoint online list.

(0) ShareShare
ReportReport
Posted on by 6

How do I return data from 1 sharepoint online list (SOL) column based on data in another column in that same SOL


The SOL is called OriginatingDepartment and has 3 columns and multiple rows
-1st column is the default title column and contains a dept name
-2nd column contains a mgr name
-3rd column contains a email address
None of the fields in the SOL will ever contain duplicate data

 

Data from the 1st column (dept name) is selected by the user via a dropdown field ('combo box') in a DataCardValue using the formula in Advanced>Items   "Choices([@HardcatAssetManagement].OriginatingDepartment)"
-Note that the datasource for this field is different to the datasource for the 'Form' in which it is enclosed. Only advising incase this is relevant information.

 

**Requirement**
I need the data in the 2nd column (mgr name) "adjacent" to the 1st column (which contains their dept name) of the SOL to automatically display in another field in another card in the same form as read only.

 

**Example**

contents of SOL (I'll delimit the data using a comma for illustrative purposes)

 

1st column (holds dept name), 2nd column (holds mgr name), 3rd column (holds email address)

dept a, Mary Smith, mary_smith@xyz.com

dept b, Bob Rogers, bob_rogers@xyz.com

 

User selects 'dept a' in one field in the form

I want 'Mary Smith' to appear in another field of that same form as read-only

 

I have looked and tried various methods without any success.

 

Can someone help?

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @rob11 

    If you are only doing this for Display purposes, then I would add a custom card to your form and add a label in it.

    Set the Text property of the label to:

       LookUp(OriginatingDepartment, Department = yourCombobox.Selected.Value, ManagerNameColumn)

     

    This will also be dependent on the type of column that HardcatAssetManagement is in your list.

     

    I hope this is helpful for you.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard