Skip to main content

Creating parameters in Tableau Public

Let's start today's blog with some questions. Are you greatly indulge in creating data visualization? Do you want to come up with scenarios that aren't available in the data? If yes then this is the blog you really want to read. Parameters allow you to create features or scenarios which help the user to control the data in a much better way.

You must be wondering how the users get a better control so mainly parameters allow the user to test different what-if scenarios that aren't available in the dataset. It is like some value that helps you to tailor your visualization according to the dataset. Options where you can use parameters in tableau- use it with calculated field or you can use it by combining with sets. We will look at both aspects in this blog. We can make the parameters more interactive and intuitive in nature by using parameter actions that allow users to change the value just by a click

As mentioned, we are considering two basic aspects for creating parameters. We are taking global sample superstore data into account for this blog. The idea is to get the top 10 product subcategories in terms of sales. It is quite basic to drag subcategories and sales into columns and rows respectively. Along with this apply a filter to subcategories where you can select the top 10 products with respect to sales.



This is the most common method but suppose you need to change the top n number such as top 5 products. For that, you will start from scratch and do the same thing if I say you can do this with help of one-click or toggle. It is possible with help of creating parameters. The same process continues taking the sub-category in the filter and then select the value in the top n tab to create a new parameter. It will take you to the next pop-up where you can enter the values such as the name of the parameter, minimum and maximum values.





After putting all the values click ok and add the parameters in your visualization. It will provide a slicer that you can adjust. Also, you will get the option to enter the number manually. Let's do the same thing in a much more intuitive way with the help of sets. Click on the subcategory and select create sets.


Start by naming your set. Select by field and in values, you can see your parameter is appearing to select the parameter "Top" which is created previously. After clicking ok drag the created set into colors and you will see a much more dynamic visualization. 


This is what parameter can bring to your visualization. In the end, a warning note does not confuse parameters with the filter. If you are using the same dataset for your visualization then you should select parameters instead of filters while if you are taking multiple datasets into account for your visualization then go for filter because you can not use the same filter in different worksheet but you can use the same parameter for the whole workbook. Parameters can be created in other data visualization tools too and I will do that in Power BI incoming blog.



Thanks for Reading  Let's connect on  LinkedIn.

 




Comments

Post a Comment

Popular posts from this blog

Identify and Delete Unused Columns & Measures

Heavy dashboards and a bad data model is a nightmare for every BI Developer. Heavy dashboards can be slow due to multiple reasons. It is always advised to stick with best practices. Are you still figuring out about those best practices then you should definitely have a quick read on Best Practice Analyser ( link ). One of the most common issues with slow dashboards is unused columns and unused measures.  It is very normal to load some extra columns and create some test measures in your dashboard but as a part of cleanup process those unused columns and unused measures should be removed. Why we are removing them? Because if you keep them then ultimately it will increase the size of your data model which is not a good practice.  How to identify the culprits (unused columns and unused measures)? In today's blog we will provide you with 2 most common external tools which will help you in identifying the culprits. More external tools😒. Who's going to pay for this? To your surprise...

Best Practice Analyser (BPA) Guide

Do you want to save tons of efforts to check if your data model and PBIX file follows the standard best practices and norms? Then this blog is for you. If you are a follower of our channel we already deep dive into the importance of the DAX Studio as an external tool. If you are a beginner I would highly recommend to visit this blog . In today's blog we will check how Tabular Editor can help to optimize the data model.  Best Practice Analyser allows to define or import best practices. It will make sure that we do not violate the best practices while developing a dashboard. Isn't it exciting!! Before we start make sure you already have Tabular Editor version 2.24.1 installed on your system. To install it do visit this link and select the link for windows installer. Once Tabular Editor is installed it will reflect in your PBIX file under external tool. Also, we need to define the standard rules. To do so in your advanced scripting or C# script copy this and save it via Ctrl+S. An...

Everything about Paginated Reports

We know all the multitudes of Power BI and how it evolved over the years but have you ever thought what if you do not require all those fancy visuals and features but you need a flat table fitting in a single page and can go on for more than 100s of pages. If you are looking for something like this then Paginated Reports is the answer for you. In today's blog we will pen down everything you need to know about Paginated Reports. To know more about the Paginated Reports do read this interesting article from Microsoft. Before we start you will require - Report Builder (external tool but a FREE one) and Power BI Pro license along with the contributor rights to publish the paginated reports to different workspaces. Also, we will be working with Sample Superstore dataset. We are aiming to create a paginated report which will look something like this. Let's get started then, make sure you have published your dashboard in a workspace. For this demo, we have published the dashboard to...