> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/4.-adding-business-logic-and-formulae/insert-manual-input-columns/dropdown/lov-from-semantic-models.md).

# LOV from semantic models

For the Single select and Multi-select columns, a list of values (LOV) can be created from your Power BI semantic models or other dimensions like Master Data reference fields. The options are dynamically updated as the source data changes.

### 1. Creating a LOV from a semantic model

Let's create a LOV from the dataset for a multi-select column. We'll create a multi-select field to assign a subregion.

**STEP 1:** In the multi-select column side panel, click on Semantic model to open the **Add options from semantic model** dialog box.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F6Vb7YKU7s0mGDz8du5Cg%2Fimage.png?alt=media&amp;token=85a168a9-7f17-47ac-8fe2-8959fb927df6" alt=""><figcaption><p>Semantic model option</p></figcaption></figure>

**STEP 2:** Select the Power BI workspace from the 'Workspace' dropdown. You can also search for a specific workspace.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FFPagHC6iiiTIcwaNMWMd%2Fimage.png?alt=media&amp;token=a33eada8-085f-4236-987f-2f31847e925b" alt=""><figcaption><p>Select the workspace</p></figcaption></figure>

**STEP 3:** Select the semantic model and the table from the respective dropdowns. Click Next.&#x20;

<div><figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FqIuTSg8r3q2YfSuEkUN6%2Fimage.png?alt=media&amp;token=18f60b5e-6599-4841-88de-08ffc2317381" alt=""><figcaption><p>Select the semantic model </p></figcaption></figure> <figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F3mT9qaqCb0LtBQxURUqA%2F2024-04-03_15h03_16.png?alt=media&amp;token=f93157e3-95ed-4c4c-8b3a-1daa61f8b852" alt=""><figcaption><p>Select the table - Acme Region Master</p></figcaption></figure></div>

**STEP 4:** From the **Label Column** dropdown, you can choose the column from the table (selected in Step 3) which will be used to populate the multi-select options.&#x20;

You can associate the options with an ID by selecting the **ID Column**. For example, if the multi-select shows a list of product names, you can tag them to a product ID field (if available in the data model). The multi-select options will not be impacted even if the product name changes, as the Product ID field remains constant.

{% hint style="info" %}
If an ID field is not available in your dataset, use the Label Column as the ID column.
{% endhint %}

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FtL5BgoqPkIVj1UcxPU0J%2Fimage.png?alt=media&amp;token=b02928dc-e427-4eee-80d8-5bcefb24c127" alt=""><figcaption><p>Selecting the column to source the multi-select options</p></figcaption></figure>

You can assign regions from the multi-select dropdown after completing the steps discussed above.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FsmXbHEZpbHmqLvz8oXRM%2Fimage.png?alt=media&amp;token=8556a5fa-982b-488b-83ef-2d1ea9b9609b" alt=""><figcaption><p>Multi-select dropdown sourced from the dataset</p></figcaption></figure>

### 2. Using joins and filters

#### Joins

The base data in our visual may be from one table, but the options in the dropdown can be from a different table. The join option comes in handy in these scenarios. If you need to join your base table with another table to source dropdown options, you need to be mindful that a common column connects the two tables. In this case, the Retail-Orders and Retail-People tables are connected by Region.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FoDBTzcAhCVJUOF3zXJhV%2Fimage.png?alt=media&amp;token=a41f1d45-1e84-4889-bdbf-9e449f95a408" alt=""><figcaption><p>Joining tables</p></figcaption></figure>

#### Filters

There are many scenarios wherein the options in the dropdown need to change based on the row dimension category. For example, consider that we have regional data in our rows. We need to use a dropdown to assign a manager for each region. The person that we assign must also be tagged to that specific region i.e. the dropdown options for the Central region should only show the people under that region. We can use filters in such scenarios.&#x20;

Let's look at a scenario where we need to use joins and filters. Please note that the filter and join features can be used independently as well.

**STEP 1:** Select the workspace, semantic model, and table as discussed in the earlier section.

**STEP 2:** You can fetch the data from another table by checking the **Join Table** checkbox. After ticking the checkbox, you will be able to specify the table to join with.

The base table used to populate rows and columns in the report is Retail - Orders. We need to fetch the person data from the Retail - People table. The Retail -Orders and Retail-People are connected by the Region field (foreign key).

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FXySJOxYoryELRRR4Jvrr%2Fimage.png?alt=media&amp;token=40f63792-1bba-4a5b-8ebc-bf653f704a5e" alt=""><figcaption><p>Joining Retail-Orders with Retail-People</p></figcaption></figure>

**STEP 3:** Let's assign the field to source the multi-select options - in this case, Retail - People.Person. Since the Retail - People table does not have a unique ID column for each person, let's use the Person field as the option and the ID.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FJPlC1Dwqe0CLo2DAAqa6%2Fimage.png?alt=media&amp;token=adb7737f-31cc-4197-802d-43b27a15ea97" alt=""><figcaption><p>Soucing options from the Person in the dataset</p></figcaption></figure>

**STEP 4:** We need to filter the people based on the region they are assigned to. In the **Columns** dropdow&#x6E;**,** select the field based on which you need to filter the options. In this case, it is the Retail - People.Region which can be used to identify the people tagged to a region. Select the matching field from the visual from the **Visual Column** dropdown.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FdgCZ7aL3q2XQh1gRnakj%2Fimage.png?alt=media&amp;token=8bd3eb2b-8254-41a6-be42-f06ccdda5332" alt=""><figcaption><p>Setting a filter for dropdown options</p></figcaption></figure>

The dropdown options for people data have now been fetched from the Retail - People table. Notice how all the people are displayed in the options for the grand total row. For each region, only the person assigned to that region is shown in the dropdown.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F9LDVfxnnu5scF0HUzQrt%2FUntitled%20Project.gif?alt=media&amp;token=78b02540-68ec-4775-b53c-18ef014802da" alt=""><figcaption><p>Filtering options dynamically</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.inforiver.com/~/changes/mS6jwvARNLHpKqBa4cT9/working-with-inforiver/4.-adding-business-logic-and-formulae/insert-manual-input-columns/dropdown/lov-from-semantic-models.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
