Follow the below steps:
1. Create slicer of the field required.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=7673417858050410784)
2. No go to Format tab and go to Items as below
![](https://www.edureka.co/community/?qa=blob&qa_blobid=15923135871074219863)
3. Change the background color as required and change the font size.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=11615060249786611468)
4. Now change the object size vertically.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=6109420215278411863)
5. Go to General and change the orientation to Horizontal.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=2474878873902277156)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=13459304251358017965)
You would get a slicer like above in the form of buttons.
Change the background, font color, and size as per requirement.
Hope it helps you!