cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Search for Column - lookup type

Hey,

 

So I have two databases i'm using (CameraInfo, and Contacts). I added a column called "Company" to the data, CameraInfo, and made the type "lookup" from my second data, Contacts.

 

Now I made a gallery with the data from Camera Info, as seen below, and in the the browse gallery's Items, I made this formula:
Screenshot 1.JPGWhen I try to insert the column, "Company," into the formula, everything in the gallery boxes dissapears. Screenshot 2.JPG

I realize that the data for the column, "Company" is being pulled from the second data source, "Contacts," and you can't technically use two data sources at once.  Can someone redirect me to a thread that may be helpful or give me some insight on how I can try to solve this? 

 

4 REPLIES 4
Highlighted
Community Champion
Community Champion

Re: Search for Column - lookup type

Hi

 

If not mistaken, you may opt for

- GroupBy or

- AddColumns

 to merge into one single temporary table and then search.

 

Please read on GroupBy and AddColumns.

 

TQ

hpkeong
Highlighted
Community Support
Community Support

Re: Search for Column - lookup type

Hi @Anonymous,

 

You may take a look at the following thread:

https://powerusers.microsoft.com/t5/2017-Flow-Forum-Holiday-Haul/Group-by-query/m-p/75305#M54

 

Basically, if you would like to have the "Company" Displayed in the CameraInfo, then the formula used for the items property od the Gallery control should be:

AddColumns(
            CameraInfo, 
            "CompanyName",
           Lookup(Contacts, ContactID=Company.ID, CompanyNameField)
)

The field depends on your actual data, and if you could share the Table structure, then I will offer a more suitable formula.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Anonymous
Not applicable

Re: Search for Column - lookup type

@v-micsh-msft:

Here is the web address of the CameraInfo list and the Contact list.

Sorry for the late repsonse. Still trying to find the right solution.

Community Support
Community Support

Re: Search for Column - lookup type

Hi @Anonymous,

 

Thanks for the update.

It seems the link you provided for the two tables needs sign-in information.

Would it be convenient for you to share a screenshot of the Column Names, and explain a bit for the relationships between those two tables?

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,914)