Power BI has some very useful and interactive visualizations that enhance the dashboard’s meaning, Chiclet Slicer being one of them.
These are slicer buttons that you can arrange either horizontally or vertically for efficient real estate use. Using the formatting tools, you can specify the number of rows and columns in the slicer. Not just that, you can also include images in your slicers, along with cross -filters.
So, in short, Chiclet Slicer forms a compact package of awesomeness!
Importing the visual from the Microsoft Power BI AppSource
It is among one of the many Custom visuals of Power BI that we need to be download separately before we can use it.
- Download the Chiclet Slicer from the following link: https://store.office.com/addinsinstallpage.aspx?rs=en-001&assetid=WA104380756
- Import it in your Power BI desktop by following the given steps
- Click on the three dots (highlighted)
- Click on “Import a visual from a file.”
- Click on Import
- Once imported, it will reflect as highlighted:
Contact us for interactive dashboards and quick database solutions.
Using Chiclet Slicer without Images
Now that our Chiclet Slicer is imported let’s see how to use it in our dashboard.
- Click on the Chiclet Filter
- Select the Dimension that you want to use in the filter
- Your filter is ready; you can change the formatting from the Format section.
But, to make it visually more appealing, let’s use images. (In the given example, I have used Country as the slicer, so I am using the flag of the respective countries)
Using Images from the Internet
- Create a separate table for Image URLs
- Once the URLs for the individual images are posted in the respective columns of the table, draw a relationship between the Data table and the URL table
- Follow the steps for creating a Chiclet Slicer graph using the new table
Images from the Local Drive
Since Power BI desktop works with online images, using images from the internet is easier than using images from the local drive. But, if you want to use local images in Chiclet Slicer or any other Power BI visual, here are simple steps for you:
- Go to edit queries
- Create a blank query
- Go to Advanced Editor of the blank query and use the following M-Script
BinaryToPbiImage = (BinaryContent as binary) as text =>
Base64 = “data:image/jpeg;base64, ” & Binary.ToText(BinaryContent,BinaryEncoding.Base64)
- Click on done
- Click on New Source
- Select Folder and Connect
- Browse the folder where you have stored the Images
- Click OK to get all the stored images imported
- Now, Invoke the query to convert local images to Base64, by clicking on Add Column
- Then select Invoke Custom Function
- Name the New Column that you want to create for the Binary Images
- Select the Function Query name that you want to Invoke
- From the Dropdown Select the Column on which the Function will be applied, i.e., the first Column named as Content
- Click OK
- Make sure that you name your images correctly, and they can be used to draw a relationship with your existing tables.
- The Name Column can draw a relationship with your existing tables, but you need to remove the extensions. To do so, right-click on the Column, select Split by Delimiter. Check if period (. ) is selected as the delimiter. Click OK. Now you have the Unique names column ready.
- Close and apply
- Go to Relationships and check if the relationship between this new Column has been established with your data table’s existing column. If not, create the connection.
- Once that’s done, you are ready to use your local drive images in your dashboard and build a Chiclet Slicer.
Contact us for any queries.