# Rule based field

**URL:** <https://community.amazonquick.com/t/rule-based-field/47707>\
**Category:** Q&A\
**Tags:** parameters, Business-Intelligence-Engineer, quick-sight\
**Created:** [June 30, 2025, 1:14pm UTC](https://community.amazonquick.com/t/rule-based-field/47707 "2025-06-30T13:14:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![InbalK](https://avatars.discourse-cdn.com/v4/letter/i/bbce88/32.png) [@InbalK](https://community.amazonquick.com/u/InbalK)\
**Post date:** [June 30, 2025, 1:14pm UTC](https://community.amazonquick.com/t/rule-based-field/47707/1 "2025-06-30T13:14:48Z")

</div>

Hello,  
I want to make a rule- if “attendance rate” (integer) is null the hide the visual, if not then display.  
How can I convert the field to a parameter? or maybe there is other way?  
Thanks

---

<div class="post-metadata">

**Author:** ![Adedolapo](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Adedolapo](https://community.amazonquick.com/u/Adedolapo)\
**Post date:** [June 30, 2025, 4:43pm UTC](https://community.amazonquick.com/t/rule-based-field/47707/2 "2025-06-30T16:43:47Z")

</div>

Hello there,

I am looking into your query and will revert.

Regards,

---

<div class="post-metadata">

**Author:** ![Adedolapo](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Adedolapo](https://community.amazonquick.com/u/Adedolapo)\
**Post date:** [July 1, 2025, 3:07am UTC](https://community.amazonquick.com/t/rule-based-field/47707/3 "2025-07-01T03:07:45Z")

</div>

Hello InbalK

With conditional rule, you can create a conditional statement that will hide or show a visual when a specific condition is met. See details about conditional rules here- [Setting a conditional rule - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/setting-a-conditional-rule.title.html)

You can pass value from a field to a parameter using parameter control.

Regards,

---

<div class="post-metadata">

**Author:** ![InbalK](https://avatars.discourse-cdn.com/v4/letter/i/bbce88/32.png) [@InbalK](https://community.amazonquick.com/u/InbalK)\
**Post date:** [July 1, 2025, 8:27am UTC](https://community.amazonquick.com/t/rule-based-field/47707/4 "2025-07-01T08:27:57Z")

</div>

Hi @Adedolapo ,  
I know the conditional rule, but I don’t know how to use a field as a parameter so i can use this conditional rule.. Because it seems like I can’t use fields for this conditional rule..  
So how can i convert a field to a parameter? So if the field is null then use some parameter to hiding the visual with the conditional rule  
Thanks!

---

<div class="post-metadata">

**Author:** ![Adedolapo](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Adedolapo](https://community.amazonquick.com/u/Adedolapo)\
**Post date:** [July 1, 2025, 1:10pm UTC](https://community.amazonquick.com/t/rule-based-field/47707/5 "2025-07-01T13:10:33Z")

</div>

Hello

Yes, you need a parameter for conditional rule.

Parameters are named variables that can transfer a value for use by an action or an object.

In this case you want to use the parameter to transfer a value that will render a visual based on a field.

To achieve this, you need to create a parameter and pass the value of the field to the parameter using the parameter control (Link to a dataset field).

Please note that you cannot use a null value with the conditional rule hence you need to preprocess and convert it.

Thanks,

---

<div class="post-metadata">

**Author:** ![InbalK](https://avatars.discourse-cdn.com/v4/letter/i/bbce88/32.png) [@InbalK](https://community.amazonquick.com/u/InbalK)\
**Post date:** [July 6, 2025, 8:36am UTC](https://community.amazonquick.com/t/rule-based-field/47707/6 "2025-07-06T08:36:45Z")

</div>

Hi @Adedolapo ,  
Is it possible to filter the parameter? I want to use data for a specific entity in the parameter, which depends on the filter.  
Thanks

---

<div class="post-metadata">

**Author:** ![Adedolapo](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Adedolapo](https://community.amazonquick.com/u/Adedolapo)\
**Post date:** [July 7, 2025, 11:28pm UTC](https://community.amazonquick.com/t/rule-based-field/47707/7 "2025-07-07T23:28:24Z")

</div>

Hello,

Yes, you can add control to the parameter (Parameters \> click the three dots \> Add control).  
You can use the Dropdown control style which allows you to filter the value you want to pass to the parameter.

Regards,

---

<div class="post-metadata">

**Author:** ![InbalK](https://avatars.discourse-cdn.com/v4/letter/i/bbce88/32.png) [@InbalK](https://community.amazonquick.com/u/InbalK)\
**Post date:** [July 13, 2025, 9:36am UTC](https://community.amazonquick.com/t/rule-based-field/47707/8 "2025-07-13T09:36:05Z")

</div>

Hi @Adedolapo ,  
I will try to explain from the beginning:  
I make reports per customer, for some customers there are sections that are not relevant (no data=null) so I want to hide them automatically somehow.  
For example:

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/8/7/8714aa357ee7aac842159b8e5014d236a83e29a9.png)

I thought maybe use the Rules feature but not sure how (for example, if some metric is null then hide)  
What is the best approach?  
Thanks
