# Dataset Parameters in Controls

**URL:** <https://community.amazonquick.com/t/dataset-parameters-in-controls/32493>\
**Category:** Q&A\
**Tags:** analysis, parameters, qls-sql, qls-filters-controls, Business-Intelligence-Engineer, quick-sight\
**Created:** [July 11, 2024, 9:23am UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493 "2024-07-11T09:23:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliver\_Smith\_Iruthay](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/oliver_smith_iruthay/32/22476_2.png) [@Oliver\_Smith\_Iruthay](https://community.amazonquick.com/u/Oliver_Smith_Iruthay)\
**Post date:** [July 11, 2024, 9:23am UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/1 "2024-07-11T09:23:44Z")

</div>

Based on this article [Advanced use cases of dataset parameters - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/dataset-parameters-advanced-options.html) I created a `single–column table with all unique values` for my control.

But I want this control to be dynamic based on the dataset parameter I send from my embedded application.

---

<div class="post-metadata">

**Author:** ![Oliver\_Smith\_Iruthay](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/oliver_smith_iruthay/32/22476_2.png) [@Oliver\_Smith\_Iruthay](https://community.amazonquick.com/u/Oliver_Smith_Iruthay)\
**Post date:** [July 11, 2024, 9:25am UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/2 "2024-07-11T09:25:20Z")

</div>

is this something that could be achieved? #filters #filters-controls-and-parameters

---

<div class="post-metadata">

**Author:** ![Oliver\_Smith\_Iruthay](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/oliver_smith_iruthay/32/22476_2.png) [@Oliver\_Smith\_Iruthay](https://community.amazonquick.com/u/Oliver_Smith_Iruthay)\
**Post date:** [July 11, 2024, 9:31am UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/3 "2024-07-11T09:31:25Z")

</div>

@evgeny55 Hi I saw you have asked similar question to this, were you able to figure this out?

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [July 11, 2024, 10:52am UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/4 "2024-07-11T10:52:52Z")

</div>

@Oliver_Smith_Iruthay ,

You pass parameter as part of the javascript sdk

> in my webpage i have the following parameters and the value to be passed.

```
                    {
                        Name: 'pmembertype',
                        Values: ['member'],
                    }
                    ,
                    {
                        Name: 'pstartstionname',
                        Values: ['Adler Planetarium'],
                    } 

```

The same parameter is defined in my customsql

> Default values for pmembertype is **casual** , pstartstionname is **Eckhart Park**

The dashboard displays the values which have been defined in my webpage code.

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/b/5/b5351341565342a0c3039702046fb27b6778ed83.png)

The controls are created by connecting to a different dataset which shows all the values

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/c/0/c0b78b6d6ec2e07ca857857e2cd5177c723c780d.png)

Changing the value in my application code , does display the same in my dashboard.

> Name: ‘pstartstionname’,  
> Values: [‘900 W Harrison St’]

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/a/d/adc8f12b0393bac9409d0803360ffd39d535bf39.png)

Kind regards,  
Koushik

---

<div class="post-metadata">

**Author:** ![Oliver\_Smith\_Iruthay](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/oliver_smith_iruthay/32/22476_2.png) [@Oliver\_Smith\_Iruthay](https://community.amazonquick.com/u/Oliver_Smith_Iruthay)\
**Post date:** [July 11, 2024, 2:33pm UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/5 "2024-07-11T14:33:53Z")

</div>

hi @Koushik_Muthanna the dataset am using to connect to the controls (in your case `divvy_trip_data`) is also based on a dataset parameter.

e.g. following is the query

select distinct company\_name from companies where user\_id=\<\<$UserId\>\> and am passing this UserId from embedded application

![Screenshot 2024-07-11 at 8.01.47 PM](https://d1wl4jav5dp96l.cloudfront.net/original/3X/f/d/fdbcb7a5271ac6c7167d8d9379f3dc592197cb46.png)

when I change the user\_id from my application the dropdown is not having any effect, it is just loading based on default values

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [July 12, 2024, 8:32am UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/6 "2024-07-12T08:32:52Z")

</div>

@Oliver_Smith_Iruthay ,

That is currently not supported.

1/ You would need still a dataset with all the unique values without any dataset parameters [userid and companyid].  
2/ the analysis userid parameter , you can create a control and map it to the dataset in step 1  
3/ the analysis companyid parameter, you can create a control and map it to the dataset in step 1  
4/ set relevant values in company id control so that it displays data only for userid selected [Adding filter controls to analysis sheets - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/filter-controls.html) ( cascading control )

---

<div class="post-metadata">

**Author:** ![Oliver\_Smith\_Iruthay](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/oliver_smith_iruthay/32/22476_2.png) [@Oliver\_Smith\_Iruthay](https://community.amazonquick.com/u/Oliver_Smith_Iruthay)\
**Post date:** [July 12, 2024, 10:34am UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/7 "2024-07-12T10:34:29Z")

</div>

This looks like a solution, I can hide the user id parameter as well, let me try.

---

<div class="post-metadata">

**Author:** ![Oliver\_Smith\_Iruthay](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/oliver_smith_iruthay/32/22476_2.png) [@Oliver\_Smith\_Iruthay](https://community.amazonquick.com/u/Oliver_Smith_Iruthay)\
**Post date:** [July 12, 2024, 6:35pm UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/8 "2024-07-12T18:35:54Z")

</div>

But I cannot expose user id of other customers to some other customer, but I will try something based on your input, thanks.

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [July 15, 2024, 7:39am UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/9 "2024-07-15T07:39:15Z")

</div>

@Oliver_Smith_Iruthay

> But I cannot expose user id of other customers to some other customer, but I will try something based on your input, thanks.

Use row level security in this scenario.

---

<div class="post-metadata">

**Author:** ![Xclipse](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xclipse/32/20455_2.png) [@Xclipse](https://community.amazonquick.com/u/Xclipse)\
**Post date:** [July 22, 2024, 4:11am UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/10 "2024-07-22T04:11:07Z")

</div>

Hi @Oliver_Smith_Iruthay, did this solution work for you? I am marking this reply as, “Solution,” but let us know if this is not resolved. Thanks for posting your questions on the Quick Sight Community!

---

<div class="post-metadata">

**Author:** ![Oliver\_Smith\_Iruthay](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/oliver_smith_iruthay/32/22476_2.png) [@Oliver\_Smith\_Iruthay](https://community.amazonquick.com/u/Oliver_Smith_Iruthay)\
**Post date:** [July 28, 2024, 5:50pm UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/11 "2024-07-28T17:50:47Z")

</div>

RLS is not a possible solution for my challenge, am yet to try runtime filtering.

---

<div class="post-metadata">

**Author:** ![Brett](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/brett/32/36494_2.png) [@Brett](https://community.amazonquick.com/u/Brett)\
**Post date:** [August 23, 2024, 4:03pm UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/12 "2024-08-23T16:03:39Z")

</div>

Hi @Oliver_Smith_Iruthay,  
It’s been awhile since we last heard from you. Did you have a chance to try out the runtime filtering option or were you able to find a different workaround for your solution?

If we do not hear back within 3 business days, I’ll go ahead and close out this topic.

Thank you!

---

<div class="post-metadata">

**Author:** ![Brett](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/brett/32/36494_2.png) [@Brett](https://community.amazonquick.com/u/Brett)\
**Post date:** [August 30, 2024, 3:15pm UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/13 "2024-08-30T15:15:39Z")

</div>

Hi @Oliver_Smith_Iruthay,  
Since we haven’t heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new topic in the community and link this discussion for any relevant information that may be needed.

Thank you!

---

<div class="post-metadata">

**Author:** ![Brett](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/brett/32/36494_2.png) [@Brett](https://community.amazonquick.com/u/Brett)\
**Post date:** [August 30, 2024, 3:15pm UTC](https://community.amazonquick.com/t/dataset-parameters-in-controls/32493/14 "2024-08-30T15:15:44Z")

</div>

Archived on August 30, 2024, 3:15pm UTC


