oh, sorry I did not make it clear.
What I would like to do is I don't know how to make those box on dashboard.
Step 1 - Drag the field you want to be in the filter onto your filters shelf, usually you would select 'all' items to filter but you can change it here
Step 2 - r/click the pill on the filters shelf, and select 'show filter'
Step 3 - Follow the rest of Shin's advice
When you get to the dashboard, select the element that you want the filter displayed for (a grey outline comes up when it is selected), click the drop down caret and navigate to the filter that you wish to expose.
Please follow these steps, it will definitely help you.
I am taking a sample data as an example to make you understand well,
the high lighted triangle is the the place where you need to insert your field to filter by.
As I am filtering my data on the basis of year.
So after adding the field to filter section right click on it and check the show filter option:
after that you will have this(below image) on the sheet.
Now as per your requirement you want a checkbox drop down so click on the arrow on the filter and select multivalue dropdown:
the it will look like that
That all is on the sheet level.
If you are using this sheet in your dashboard follow these steps:
Click on the sheet and then the down arrow and go to filter and then chose the desired filter and place it on desired location:
and the dropdown filter will show on your dashboard.
Hope it will help you.
Thank you, it is helpful.
one more thing, when I have a parameter filter, the filter seems not connect to the worksheet on the dashboard, do you know how to do so?
A parameter is just a container of items. It's not linked to the dataset in any way, so you need to create a calculated field in order to LINK it to the data set.
E.g. [Parameter] = [Category] and bring this into filters and set it as true.