最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

list - How to Filter Sharepoint Lookup Column - Stack Overflow

programmeradmin1浏览0评论

I am looking to use a secondary list to populate a dropdown column in my Sharepoint list. However, the secondary list contains data that I don't want to have pulled over based on the type column.

Imagine tables as follows:

Table 1

| ID | Location | Description | Category |

|----|----------|-------------|----------|

|-1--|-NYC----|Junk Goods|----?-----|

|-2--|-LA------|-Apples----|----?-----|

|-3--|-SF------|-Cod-------|----?-----|

Table 2

| Location | Category Desc | Subcategory |

|----------|---------------|-------------|

| NYC -----| Air ----------| Plane ------|

| NYC -----| Air ----------| Helicopter -|

| NYC -----| Sea ----------| Boat -------|

| LA ------| Sea ----------| Boat -------|

| LA ------| Air ----------| Plane ------|

| SF ------| Sea ----------| Boat -------|

In my case, I need to have the "Category" column in Table 1 lookup the "Category Desc" column from Table 2 but only return those values if the Location columns match in both.

I have looked at the lookup column set up and looked at the calculated columns for the table but those don't have everything I needed. I know you can do this in Excel, but I can't use the excel structure in sharepoint due to a field in our list that contains an image that can't be transferred to the excel format.

Any suggestions would be appreciated. Thanks in advance.

(apologies for the ugly tables, I tried using the table formatting but it wasn't working so I just manually forced something that resembled a table)

I am looking to use a secondary list to populate a dropdown column in my Sharepoint list. However, the secondary list contains data that I don't want to have pulled over based on the type column.

Imagine tables as follows:

Table 1

| ID | Location | Description | Category |

|----|----------|-------------|----------|

|-1--|-NYC----|Junk Goods|----?-----|

|-2--|-LA------|-Apples----|----?-----|

|-3--|-SF------|-Cod-------|----?-----|

Table 2

| Location | Category Desc | Subcategory |

|----------|---------------|-------------|

| NYC -----| Air ----------| Plane ------|

| NYC -----| Air ----------| Helicopter -|

| NYC -----| Sea ----------| Boat -------|

| LA ------| Sea ----------| Boat -------|

| LA ------| Air ----------| Plane ------|

| SF ------| Sea ----------| Boat -------|

In my case, I need to have the "Category" column in Table 1 lookup the "Category Desc" column from Table 2 but only return those values if the Location columns match in both.

I have looked at the lookup column set up and looked at the calculated columns for the table but those don't have everything I needed. I know you can do this in Excel, but I can't use the excel structure in sharepoint due to a field in our list that contains an image that can't be transferred to the excel format.

Any suggestions would be appreciated. Thanks in advance.

(apologies for the ugly tables, I tried using the table formatting but it wasn't working so I just manually forced something that resembled a table)

Share asked Feb 7 at 20:51 J.A.BambiJ.A.Bambi 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 0

Instead of using a lookup column, consider using a plain text column. Then customise the SharePoint list form with PowerApps. In the list, click on Integrate > PowerApps > Customise form.

PowerApps allows you to do all sorts of things to make the form more user friendly than the out of the box SharePoint list form.

You can add the other SharePoint list as an additional data source.

For the new plain text field, you can add a combo box control to the form and populate it with the values from the lookup list, which can be filtered to your needs. Overlay the text box with the combo box and hide the combo box when the form is being viewed. Store the value of the combo box in the text field.

This is just a rough outline of the approach. It is a bit of a learning curve, but it's worth conquering, because it is VERY powerful.

发布评论

评论列表(0)

  1. 暂无评论