<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Key2Market on Medium]]></title>
        <description><![CDATA[Stories by Key2Market on Medium]]></description>
        <link>https://medium.com/@key2market?source=rss-fb833304e136------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_kZNwiLn7ZasD008mgh-ig.png</url>
            <title>Stories by Key2Market on Medium</title>
            <link>https://medium.com/@key2market?source=rss-fb833304e136------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:18:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@key2market/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Anatomy of an Event]]></title>
            <link>https://medium.com/@key2market/anatomy-of-an-event-2e58f06fead4?source=rss-fb833304e136------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e58f06fead4</guid>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Key2Market]]></dc:creator>
            <pubDate>Sun, 12 Jan 2020 12:20:09 GMT</pubDate>
            <atom:updated>2020-01-12T12:32:14.214Z</atom:updated>
            <content:encoded><![CDATA[<h3>Product Event Tracking</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*bA8TwUDLuqYf0sjwI8Kypw.png" /></figure><p>Product tracking has received much attention in the recent years, especially as more businesses are seeing the value of understanding customer actions online. A typical tracking pipeline consists of an event collector in the application, a beacon server to receive and validate the events and an atomic events table to store the raw events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*J6b0jFIsavIrH9X2rHUU1w.jpeg" /></figure><p>Typically the atomic events table will be immutable to contain essential pre-defined parameters of the events, while all the extendable information about the events (context) will be stored in surrounding tables that link back to the Atomic Events table by EventID. This setup ensures the integrity of the core events, while allowing the businesses to extend and adapt tracking to their unique business requirements.</p><p>Event Payloads (the data that is sent from the tracker) typically is divided into 2 major categories:</p><ol><li>Structured Event</li><li>Event Context</li></ol><h3>Structured Event</h3><p>A Structured Event has the following components that bring structure to event analysis:</p><ul><li>Category</li><li>Action</li><li>Label (optional, but recommended)</li><li>Property (optional)</li><li>Value (optional)</li></ul><p>This model is widely adopted by companies like Google Analytics, Snowplow Analytics and few others. An example of a structured event is when you might set up an audio “play” button on your site that showcases your music so that it sends a payload with the following values:</p><ul><li>Category: “Audio”</li><li>Action: “Play”</li><li>Property: “Extended Version”</li><li>Label: “My First Song”</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b6cf85101d89d89a290b78a554db576/href">https://medium.com/media/9b6cf85101d89d89a290b78a554db576/href</a></iframe><p>In addition to the structured event information, Transactional data is often carried as part of the event payload. Although not required in every tracking implementation, ecommerce businesses are frequent enough users of the tracking technology to warrant the addition of the sales data as a standard payload in the event tracking.</p><h3>Event Contexts</h3><p>In addition to the payload of the actual event, information surrounding the event can often be captured in separate objects (tables). Contexts usually contain the information that surrounds an event, such as A/B testing data or the data associated with a user state.</p><p>Because these contexts do not apply to every event, but rather to some of them, it makes sense to store them in a separate tables for a number of reasons:</p><ol><li>Ease of Analysis — when data associated with a particular context is in a separate table, it is much easier for the analysts to find this data to perform analysis. It makes it faster to retrieve and aggregate the data when the analysts do not need to scan the events table with billions of records to find the 2 million records records that contain data on particular context.</li><li>Logical Data Separation — along the lines of ease of analysis, separating contexts into additional tables that surround the event makes it easy to manage them and discontinue some context into archives if needed. It makes it easy to maintain the data and tracking documentation.</li><li>Data Validation — In cases when an event pipeline passes some validations, it makes it much easier to validate a context separately from an event, rather than failing the whole event if a context does not pass validation. In many modern tracking pipelines, it is possible to fix the issue with context that failed validation and re-play the failed data into the tracking tables. Not losing the core event when event context does not match the criteria can be critical to ensure data accuracy.</li></ol><h3>Implementing Tracking</h3><p>When building a feature, implementing tracking as part of the development and testing of this feature should be a process that involves both BI and Development teams.</p><ol><li>Define Metrics and KPIs of the feature, establish their formula</li><li>Determine what elements of the feature need to be tracked so that Analysts are be able to calculate the KPIs for the feature and report on them</li><li>Define and document the events and payloads that will be sent (Structured Events, Contexts)<br>- Define how events will be called<br>- Define the event payload<br>- Create the DWH context tables, if necessary<br>- Create validation JSON files and upload to repo</li><li>Developers to actually write the code in the app that will collect and send the payload. BI team could review it in some cases, but not necessary.</li><li>Validate the arrival of TEST events and create sample reports with KPIs</li><li>Once feature is ready, deploy into production</li><li>Create production reports on the feature</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a422288151e20fa762034fe7df7eb14c/href">https://medium.com/media/a422288151e20fa762034fe7df7eb14c/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e58f06fead4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make your Tableau reports dynamic and more attractive]]></title>
            <link>https://medium.com/@key2market/make-your-tableau-reports-dynamic-and-more-attractive-567248a92d9a?source=rss-fb833304e136------2</link>
            <guid isPermaLink="false">https://medium.com/p/567248a92d9a</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[key2market]]></category>
            <category><![CDATA[tableau-consulting]]></category>
            <category><![CDATA[tableau-training]]></category>
            <category><![CDATA[tableau]]></category>
            <dc:creator><![CDATA[Key2Market]]></dc:creator>
            <pubDate>Tue, 12 Feb 2019 13:49:34 GMT</pubDate>
            <atom:updated>2019-02-12T13:49:34.013Z</atom:updated>
            <content:encoded><![CDATA[<p>The fact you are reading this article means maybe you are tired of all the boring dashboards, looking for something different or you just need little inspiration to boost your imagination and creativity. Whatever the case is the main focus of this article is to enhance your reports and make you adopt a more dynamic approach towards the ones you create or review on a daily basis.</p><p>For the purposes of this article I am using <a href="https://public.tableau.com/s/gallery/storm-watch">Storm Watch data</a> from Tableau Public and I am going to represent it in a way similar to the weather forecast with dynamic graphics.</p><p>When loading the data into Tableau make sure every field is in the correct data type. It is frequent mistake some of the geographical coordinates to be auto recognized as “number”, so ensure to validate it in the beginning.</p><p>So we are ready to start building the visualization. Double click on latitude and longitude and Tableau will automatically place them in order to create map chart. However the built-in map layers are pretty decent (figure 1) I am going to use external WMS (web map service) in order to bring more “life” to the visualization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VYYMxzRl5L49NGXF" /><figcaption>Figure 1 : Tableau built-in map layers</figcaption></figure><p>Remember, it is very easy to create a visualization capable to serve your necessity, but the key to total customer/management satisfaction is in the tiny, touchy details.</p><p>There are a lot of free web map service sources published in relevant topics on Tableau Community Forums and the one I am using is also free and provided by <a href="https://www.gebco.net/data_and_products/gebco_web_services/web_map_service/">GEBCO WMS</a>.</p><p>The way you add and enable this service is by going to <em>Map -&gt; Background Maps -&gt; Map Services</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/0*Fqbc4TUCTmnBMxDw" /></figure><p><em>Add… -&gt; WMS Servers -&gt; and paste/input the WMS URL</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*gfBhDXkNw4hGHYl7" /></figure><p>And voalá, you have great looking topographic map of Earth:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4c98qjtFx6dQdUdm" /><figcaption>Figure 2: Tableau World map using WMS</figcaption></figure><p>Next steps:</p><ul><li>Add ”Storm” to Colour tab</li><li>Add “Storm” to Label tab and</li><li>Add “Basin” to filter</li><li>Select Atlantic from the single value list in order to focus on one of the areas to adjust the details</li></ul><p>If you are strictly following the instructions this is the result you should get at this point (Figure 3):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tp5z1eIjQaIBGhWs" /><figcaption>Figure 3 Storms get visualized static</figcaption></figure><p>Once more I will focus on the details and more precise on how to remove the white boxes on the labels in 1 easy step- <em>Colour tab -&gt; Halo -&gt; Choose None</em>. You may face some difficulties reading the text after removing the white boxes, so make sure you adjust the text font and colour in proper way to make it visible enough.</p><p>Next steps:</p><ul><li>Add “Energy” to Size tab and ensure it is measuring the sum</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*AJnBMkG5R2NJC9fJ" /></figure><ul><li>Switch from “Automatic” to “Line” in the marks</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/148/0*sdFNegkkpY_G5GG3" /></figure><ul><li>Add “Date” to Path and check exact date to get this visualized</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4CcWpwfNhGuKLRBz" /></figure><ul><li>You should get this additional window appeared when adding “Date” to “Pages”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/0*fAEUGHqopwi4WznB" /></figure><p>This is where you adjust the time frame and the speed of the moving objects.</p><p>Time period is set to year by default and we’ve got data for 2 years. To get the best of the moving graphics experience it is recommended to set the period to weeks or months.</p><p>Add you sheet to dashboard and arrange in a way which satisfies you:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0jef_jz2EiM8DEyVcL2_Fw.png" /></figure><p>If you followed the steps you should get a result as in the video below:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FFyZpRytiyMY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DFyZpRytiyMY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FFyZpRytiyMY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/81f4c9821471827b620a001b2495e162/href">https://medium.com/media/81f4c9821471827b620a001b2495e162/href</a></iframe><p>I hope you find this article helpful. Give it a “clap” and let me know if you are also using dynamic content on your Tableau dashboards . To read more stories, just hit “Follow” button.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=567248a92d9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Row-Level Security (RLS) in Tableau]]></title>
            <link>https://medium.com/@key2market/row-level-security-rls-in-tableau-11ba667ad979?source=rss-fb833304e136------2</link>
            <guid isPermaLink="false">https://medium.com/p/11ba667ad979</guid>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[tableau]]></category>
            <dc:creator><![CDATA[Key2Market]]></dc:creator>
            <pubDate>Fri, 01 Feb 2019 16:29:18 GMT</pubDate>
            <atom:updated>2019-02-01T16:29:18.059Z</atom:updated>
            <content:encoded><![CDATA[<p>Nowadays, many organizations face such problems as leaking of confidential information and time-management issues. If you are working in Tableau, the above-mentioned problems can be solved (at least partially) by displaying only the data that the user should see, therefore the user won’t be distracted by irrelevant information or information that should not be shown. Tableau does not handle filtering data for an individual user using Permissions, which only affect what Tableau Server content a user can see. So, to enforce user-based data entitlements in Tableau you have to use Row Level Security.</p><p>All secure techniques for achieving Row Level Security in Tableau depend on each user having a distinct username in Tableau Server and that the user be logged in as that username.</p><h3><strong>Main principles of RLS</strong></h3><p>So, let’s look at the <strong>basic conditions</strong> for creating a <strong>reliable RLS</strong>:</p><p>1. All needed users and groups are created in Tableau Server;</p><p>2. You need to be connected to Tableau Server or Tableau Online because the desktop needs to download list of users and groups from the server;</p><p>3. User Filter on the Data Source level (according to the filter order in Tableau the source filter is applied in the first order)</p><p>Embedded Data Sources allow an end user with Web Edit or Download to edit Calculated Fields. So embedded Data Sources are less secure and should be used only if Web Edit/Download will always be disabled.</p><p>The main <strong>options to implement Data Row-Level Security are next</strong>:</p><p><strong><em>I. Solely in Tableau</em></strong></p><p>a. Live or Extract connection</p><p>b. User Filter built and applied per workbook or data source</p><p><strong><em>II. Mixed approach</em></strong>, where user information in Tableau Server or Tableau Online corresponds with data elements in the database</p><p>a. Live or Extract connection</p><p>b. Leverage Data Server</p><p>c. Use Data Source Filters (e.g. username()=[user column from security table in database] or calculated Field based on username() tableau function)</p><h3>Standard RLS: completely managed in Tableau</h3><p>Let’s consider an example of implementing RLS solely in Tableau with user filters which are defined in Tableau Desktop. First of all, we create all needed users and groups in Tableau Online.</p><p>Then, click “Server” on the menu bar of Tableau Desktop -&gt; Create User Filter. Next appears a list of available fields that we can base the user filter on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*qd7h8dFZpyzpX2VPvifyzg.png" /></figure><p>If you are not signed to into Tableau Server or Tableau Online you may be prompted to do so. The window will open and ask you to enter your credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*BSdoEaZfnTgHpyX8I_wvbQ.png" /></figure><p>Assume that we have some geo-based data and we assign each user to their appropriate region, so only one user maps to any given row of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*zkk-xXLcUu1RlHM9Jc8aSw.png" /></figure><p>The new user calculation appears under measures in the Data pane. Just like your other fields, you can use it in one or more visualizations by adding it to the filters shelf: from the Data pane drag User Filter to the Filters shelf. In the Filter dialog box that opens, select True, and then click OK. Note: If you are not signed in to Tableau Server or Tableau Online, the True option is not visible. In Tableau Desktop, sign in to Tableau Server or Tableau Online to select it. In the lower right corner of Tableau Desktop is a user emulator, which allows us to see what the view will look like if a specific user sign in. You may toggle between some of the users and the view will be filtered to show only their relevant values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-vOaZ82tfLquuwfDpinI5g.png" /></figure><h3>Standard RLS: hybrid approach</h3><p>Also, we can use a hybrid approach to RLS. Let’s take a look at an example right away. So, this time we connect to both the Orders (orders with respective sales persons) which contains actual data for visualization and the People tables (entitlement table). Data table is joined to entitlement table containing user names and key values. The People table is an example of having data elements in the database that associate users to specific pieces of data like Users to Regions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*uyO65ysZHlo_kqhfv3YBVw.png" /><figcaption>“People” table</figcaption></figure><p>To create a User Filter that leverages this data we can use Calculated Field. We’ll create a formula that checks if the user name matches the sales person field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*z5hvfy7tj56zpm9gJUop3A.png" /></figure><p>Once this Calculated Field is created, we can use it in a similar fashion to the filter in the previous example. It can be dragged to the filter shelf or applied to multiple worksheets through embedded as s Data Source Filter. Now the data source will be filtered to the logged in user, and they cannot get around the data security model, owing to the data source filter.</p><p>This is relatively simple example, in real life it can be more complicated. Information about other user functions and complexity of entitlement tables can be found in sections below.</p><h3>Entitlement table</h3><p>‘People’ table, mentioned above, is an example of Entitlement or Secure table. Entitlement table is a single combination of attributed that the data will be filtered on. For example, filter on ‘Category’, ‘Sub-Category’ and ‘Region’ is a single entitlement. Standard database design practices mean you rarely have a single table that fits the criteria for the entitlements table. Most data aren’t necessarily mapped one-to-one to a single user; it’s very likely the data security is organized either by role, organization name, or both.</p><p>You may even need to do UNIONs to get all of the rows necessary to represent that most granular level of data, and particular calculations to generate a unique Composite Key field. Certainly, you can do this in Tableau’s JOINs dialog. But it’s a lot to ask of an end user to set up every time, when the logic should always stay the same. So more practical is creating a View, so that you only have to JOIN that single ‘security table” view to the data table in Tableau.</p><h3>User Functions</h3><p>As you already know, User Functions can be used to create user filters or column-level security filters that affect visualizations published to Tableau Server or Tableau Online, so that only certain people can see your visualization. Let’s look at them in more detail:</p><p>· <strong>FULLNAME:</strong> FULLNAME( )</p><p>Returns the full name for the current user. This is the Tableau Server or Tableau Online full name when the user is signed in; otherwise the local or network full name for the Tableau Desktop user.</p><p>Example: [Manager]=FULLNAME( )</p><p>If manager Joe Copling is signed in, this example returns True only if the Manager field in the view contained Joe Copling. When used as a filter, this calculated field can be used to create a user filter that only shows data that is relevant to the person signed in to the server.</p><p>· <strong>ISFULLNAME</strong>: ISFULLNAME(string)</p><p>Returns true if the current user’s full name matches the specified full name, or false if it does not match. This function uses the Tableau Server or Online full name when the user is signed in; otherwise it uses the local or network full name for the Tableau Desktop user.</p><p>Example: ISFULLNAME(“Joe Copling”)</p><p>This example returns true if Joe Copling is the current user, otherwise it returns false.</p><p>· <strong>ISMEMBEROF</strong>: ISMEMBEROF(string)</p><p>Returns true if the person currently using Tableau is a member of a group that matches the given string. If the person currently using Tableau is signed in, the group membership is determined by groups on Tableau Server or Tableau Online. If the person is not signed in, this function returns false.</p><p>Example: IF ISMEMBEROF(“Sales”) THEN “Sales” ELSE “Other” END</p><p>· <strong>ISUSERNAME</strong>: ISUSERNAME(string)</p><p>Returns true if the current user’s username matches the specified username, or false if it does not match. This function uses the Tableau Server or Online username when the user is signed in; otherwise it uses the local or network username for the Tableau Desktop user.</p><p>Example: ISUSERNAME(“jcopling”)</p><p>This example returns true if jcopling is the current user; otherwise it returns false.</p><p>· <strong>USERNAME</strong>: USERNAME( )</p><p>Returns the username for the current user. This is the Tableau Server or Tableau Online username when the user is signed in; otherwise it is the local or network username for the Tableau Desktop user.</p><p>Example: [Manager]=USERNAME( )</p><p>If the manager jcopling was signed in, this function would only return True when the Manager field in the view is jcopling. When used as a filter this calculated field can be used to create a user filter that only shows data that is relevant to the person signed in to the server.</p><h3>RLS and hierarchical relationships</h3><p>To represent different hierarchical relationships to the data, one effective technique is to have a row in the Entitlements View representing each of the most granular level of security filtering. You will probably need to construct a de-normalized “entitlements view” out of many different tables that store different pieces of the user entitlements.</p><p>Let’s look at this example:</p><p>1) CEO</p><p>2) Manager</p><p>3) Regional manager</p><p>To represent this in your Entitlements View for some source table that contains data by department and regions, the CEO will have a row for every department and region. Each manager will have a row for department that belong to their responsibility and all regions. Each regional manager will have a row only for his/her department and region(s).</p><p>For hierarchically complicated entitlements tables you may need to use multiple fields to join them with table which contains data. This is known as a Composite Key in database terminology, and there are two ways you can handle it:</p><p>1) Create an actual Composite Key field in your Entitlements View and in your Data Table. Then JOIN the two on that single Composite Key field</p><p>2) JOIN the Entitlements View to the Data Table on each field that makes up the Composite Key.</p><p>Most organizations have a hierarchy, and often there is the desire that those higher in the hierarchy can access the data of all of those who report to them. You can construct hierarchical filters, like so:</p><p>IF ISMEMBEROF(‘C-level) THEN 1</p><p>ELSEIF ISMEMBEROF(‘Managers’) THEN</p><p>IF [Manager Username Field] = USERNAME() and [department(entitlement)] = [department(data table)] THEN 1 ELSE 0 END</p><p>ELSE 0 END</p><h3>RLS and Extracts</h3><p>Tableau Extracts take whatever table relationships from the Live Connection screen and combine them into a single table through one query, the results of which are transformed in a single table in the Extract file.</p><p>Starting in Tableau 2018.3, the Hyper extract engine has been updated with an option to bring in Multiple Tables, specifically with the intention of making Row Level Security easier to implement. Using Multiple Tables can vastly reduce the time it takes to generate an extract, by completely avoiding the “row duplication blow-up”.</p><p>Starting in 2018.3:</p><p>· The design for row level security will be the same in both live connections and extracts</p><p>· Extract files with security will create much faster</p><p>· Best practices for entitlements tables are now feasible in Extracts</p><p>Conclusion: You will need to do your filtering yourself, in one of two ways:</p><p>1. Convert the each table to Custom SQL and add the appropriate filter clauses</p><p>2. Put the filtering logic into a View in your database</p><p>The Entitlements Table should be a de-normalized View of whatever entitlements are necessary to filter the data at the most granular level. In almost all cases, this means the View should contain:</p><p>- A column for Username, containing the exact usernames in Tableau Server, and…</p><p>- A row for each level of the most granular entitlements to the Data Object.</p><p>In a de-normalized, single table extract, this may blow up the extract size to enormous proportions instantly. But in a multiple table extract, both tables stay the same size, no matter how big either one is. And since to Hyper quite good at JOINing and filtering, the technique remains very fast even on large data sets</p><p>To implement Row Level Security without your data “blowing up”, you should use the CONTAINS() method. The simplest high-performance method that does not duplicate any rows is to include the list of all allowed usernames in a comma-delimited field in your data, then look for it using the CONTAINS() function:</p><p>CONTAINS([Security Users Field], USERNAME()) which may help to check if complex security fields contain certain registered usernames from Tableau Server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11ba667ad979" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Master your data visualization skills (4 tips)]]></title>
            <link>https://medium.com/@key2market/master-your-data-visualization-skills-4-tips-1351dbe50475?source=rss-fb833304e136------2</link>
            <guid isPermaLink="false">https://medium.com/p/1351dbe50475</guid>
            <category><![CDATA[charts]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[tableau]]></category>
            <dc:creator><![CDATA[Key2Market]]></dc:creator>
            <pubDate>Mon, 14 Jan 2019 15:44:19 GMT</pubDate>
            <atom:updated>2019-01-14T15:44:19.793Z</atom:updated>
            <content:encoded><![CDATA[<p><em>“Just find the viz you like and copy it”</em> — have you seen such advice? I have. After one of these tips I saved a lot of dashboards and google pictures with nice colour combinations. At that time, I did not realized that colours and shapes (visual attractiveness) are not the only things you need to know in order to become a visualization master. You should also attract your audience’s attention, to know exactly how and where to place accents and other subtleties. In this article I will cover main things you need to know on this subject and I hope you will find something new for yourself in order to make our world clearer and more beautiful!</p><p>Let’s draw 2 axes, where <strong>Y —</strong> visual attractiveness and <strong>X — </strong>functionality. Take a look at the diagram below and 4 visualizations of <strong>the same dataset.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j6FR_vt6UZIAfsHS" /></figure><p>Looking at each viz can you (and how quickly) answer the following questions:</p><ol><li><em>Where are the most expensive taxis?</em></li></ol><p><em>2. Where are they the cheapest?</em></p><p><em>3. Where are taxi costs about the same?</em></p><p><em>4. Is there France somewhere in the chart?</em></p><h3><strong>4 tips to master your visualization skills:</strong></h3><h4><strong>1. Make analysis, ask yourself:</strong></h4><ul><li>Who is your audience and what do they want to know?</li><li>What are the main ideas you want to show them, what do they have to release or do after viewing your visualization?</li><li>What additional data do you need to show in order to prove your point?</li></ul><p>All your answers are the basis for visualization, and at the same time this is a good way to check your final product.</p><p>Do not hide facts that do not confirm your idea, but also do not show the audience all your <strong>exploratory</strong> analysis and a long way to the main point (only if you need to show them you are truly professional). Keep only the main points (<strong>explanatory</strong> analysis) and proceed to the next step.</p><h4><strong>2. Choose the best way to visualize data:</strong></h4><blockquote><em>“When it comes to the type of graph, you should always use whatever will be easiest for your audience to read.”</em> (Cole Nussbaumer Knaflic, “Storytelling with Data: A Data Visualization Guide for Business Professionals”, p. 120)</blockquote><p>There are types of visualization that require more time to perceive, because we read them (verbal perception): text, tables. Other graphics we perceive faster (visual perception) — those where there are colours, shapes, sizes. This does not mean that you should stop using tables, just keep this in mind when you make a choice. Let’s look at the most popular graphics and where to use them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F23wuxN7EFxMUYJdv3nqyQ.png" /></figure><p>There are many other ways to visualize your data, just take two minutes to analyse them before using. Do they reflect the main idea in the best way? Can you imagine a simpler and and more intuitive way to show your data?</p><p>It is better to avoid/use less often some types of graphs, because they are meaningless or have many limitations:<strong> pie chart</strong> and <strong>donut</strong> (read more <a href="https://eagereyes.org/pie-charts">here</a>), <strong>scatterplot </strong>— it is usually used in science to show the dependence of two measures. <strong>3D </strong>— it’s hard to imagine when this kind of graphs can make real sense. <strong>Rainbow graph </strong>— when there are too many categories try to group them or create several diagrams.</p><h4><strong>3. Cleaning</strong></h4><blockquote><em>“I would have written a shorter letter, but I did not have the time.” </em>(Blaise Pascal, 1656–1657)</blockquote><p>Everything that you have on a dashboard takes your audience’s attention, but our attention is <strong>VERY limited</strong>. Help your audience to easily understand the data — remove everything that defaults and/or does not have much importance. Start with a white sheet and continue cleaning your viz all the time as you create it.</p><p>What could be default or unimportant? For example, underlines, frames, visible lines, where they are not necessarily needed. Alignment is an invisible border, but still it is a border, so there is no need to add unnecessary lines or marks to the chart. Another example: value labels with lots of details, both % and absolute as well as the name of a group and subgroup. Move some of the values into comments, tooltips, or a separate table if you really need them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kZl20q-htVP9AqKC" /></figure><h4><strong>4. Emphasis (design tips)</strong></h4><p>You have already identified the main ideas of your visualization, now you can determine what your client will look at first. You can also determine what he will notice afterwards and so on.</p><p>There is a rule in the design: if something is not quite the same, make it completely different. For example, comparing profits and costs you should not make one line blue, and the other dark blue — make them in different colours.</p><p>Below are ways to highlight and logically emphasize elements in your visualization:</p><ul><li><strong>Colour:</strong> the default colour combinations in Tableau are fine, but sometimes we need to find the right colour combination on our own. There is an easy way to find the right colours with a <a href="https://www.sessions.edu/color-calculator/">colour calculator</a> based on simple rules of colour harmony. Use colour shades if the current colour combination resembles Christmas or a toy store.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*Hs_EtJg-YPUnKq0SytHLEA.png" /></figure><p>It is important to know that warm tones are “stronger” than cold ones (they take more attention). So, for example, comparing year to year you should not make the current year blue and the previous orange — all attention will be given to the previous year. Do not be afraid to use grey colour, it helps to place accents!</p><ul><li><strong>Repetition: </strong>repeated design elements (colour, font, size, alignment, emphasis) in your visualization give it integrity and functionality.</li></ul><p>For example, if you repeatedly show profit, make it the same colour in all charts, so your audience will intuitively understand what they are looking at. Another example is subtitles, it’s better to use one font and size for them, so the structure will be better.</p><ul><li><strong>Font and Size:</strong> there are rules on how to combine fonts, but it is much easier to use one font with variations of <strong>bold, medium,</strong> regular, light. When you choose the text size remember that difference of font size in 2pt is not a difference for our eyes, so make it REALLY different.</li></ul><p>Underlining (except hyperlinks) usually complicate the reading of the text, so it is better not to use it. There is also a rule of punctuation: the punctuation has to be in the same style (font, colour, size) as the text before it.<strong> Example:</strong> <em>text,</em> not <strong>Example</strong><em>: text</em><strong>.</strong></p><ul><li><strong>Proximity:</strong> we perceive close objects as related, and remote objects as unrelated. Therefore, for example, you should not put group names too far from the histogram, because we do not see that they are related:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N2KIbiipPKmy4YZR" /></figure><ul><li><strong>Alignment: </strong>everything should be aligned and sorted. The easiest and most reliable way is to use left alignment. It is also possible to use other alignments, but you should know how to use and combine them in a right way. The use of diagonal alignment is generally meaningless.</li></ul><p>By the way, all elements on your dashboard should be aligned with each other, nothing should fly randomly or stand out from the general structure, so the work looks neat and professional!</p><ul><li><strong>Placement: </strong>designers know where to place an advertisement or the most important information, it is also useful for us to know. According to <a href="https://vanseodesign.com/web-design/3-design-layouts/">eye tracking studies</a> (tips specifically for Tableau <a href="https://www.tableau.com/about/blog/2017/6/eye-tracking-study-5-key-learnings-data-designers-everywhere-72395">here</a>), we read the page in a very similar way:</li><li><em>we basically start from the upper left corner</em></li><li><em>we always first we see what is on the top</em></li><li><em>we spend most of the time on the left side of the page</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*YMQdlH5EoIkOM5QMJweCnA.png" /><figcaption><a href="https://vanseodesign.com/web-design/3-design-layouts/">https://vanseodesign.com/web-design/3-design-layouts/</a></figcaption></figure><h4>Remember this and use to create your perfect viz.</h4><p><em>What if your audience prefers Excel spreadsheets? Just give them a table, and also add a perfect visualization. One day they will realize that good visualization is priceless!</em></p><p>Most of the ideas described in this article (and many other examples) can be found in <strong>2 brilliant books:</strong></p><ul><li>“Storytelling with Data: A Data Visualization Guide for Business Professionals” <strong>by Cole Nussbaumer Knaflic</strong></li><li>“The Non-Designer’s Design Book” <strong>by Robin Williams.</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1351dbe50475" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How the Brexit Cookie Crumbles]]></title>
            <link>https://medium.com/@key2market/how-the-brexit-cookie-crumbles-ae1a7e98f5cf?source=rss-fb833304e136------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae1a7e98f5cf</guid>
            <category><![CDATA[brexit]]></category>
            <category><![CDATA[european-union]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[london]]></category>
            <category><![CDATA[banking]]></category>
            <dc:creator><![CDATA[Key2Market]]></dc:creator>
            <pubDate>Fri, 21 Dec 2018 11:17:05 GMT</pubDate>
            <atom:updated>2018-12-21T11:17:05.313Z</atom:updated>
            <content:encoded><![CDATA[<p>With the upcoming divorce between UK and the European Union, it’s becoming more certain than ever that London will no longer be the driving force behind capital operations in the block.</p><p>During the last year many of the top banks, located in Canary Wharf, have announced their plans to move personnel to other locations throughout Europe, mainly — Frankfurt, Paris and Dublin.</p><p>With only 3 months left and no clear divorce contract between UK and the EU, every bank is preparing for intensive recruiting in 2019. If Theresa May succeeds in securing Cabinet support for the deal, employment shift should look like this Tableau viz:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/0*lxCEczl3i3xxQn6O" /></figure><p>All in all, 3530 jobs will be transferred from London during the next year and that’s only the tip of the iceberg. Analysts suggest that this number could be several times bigger by 2022, when the so called “transition period” of the current Brexit draft expires.</p><p>Optimistically, it seems that Paris will be getting the cherry on the top with approximately 1700 new jobs in the financial sector, closely followed by Frankfurt with 1300 openings coming down the pipe.</p><p>Now back to pessimism. In the last six months companies and banks alike threatened May and her cabinet with drastic measures, should no agreement be achieved. Nobody likes the idea of a Hard Brexit, but JP Morgan, Deutche Bank and Goldman Sachs just despise it! Throughout the year they have promised to move more than 10,000 jobs by 2022 should push come to shove and they are not alone in these bald claims.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/0*oYi2XAuJ1Qbey1Ql" /></figure><p>Now that’s a bad picture and even Tableau can’t make it look better. If these 8 banks move more than 16,000 jobs across the La Manche, you can be sure that the Canary Wharf is going to get a pretty empty place. Once it begins, the bleeding will never stop.</p><p>In the end, Frankfurt, Paris, Dublin, Madrid and Zurich will each take a piece of the financial business, that was up until now exclusively in London. Based on the information, published in news outlets and represented in percentages, by 2022 these pieces should look like that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9uf5nu15Tl2qx5vZXQh7Yw.png" /></figure><p>And that’s how the cookie crumbles.</p><p>Want to know more about this article?</p><p>Have a look at the <a href="https://public.tableau.com/views/Brexit-BankJobsmigration/2019SoftBrexit?:embed=y&amp;:display_count=yes&amp;publish=yes">Tableau Public workbook</a>.</p><p>Sources: <a href="https://fingfx.thomsonreuters.com/gfx/rngs/BRITAIN-EU/010051PM3TN/index.html">Reuters — Brexit and the City;</a> <a href="https://uk.reuters.com/article/us-britain-eu-city-finance/5000-uk-finance-jobs-may-be-moved-by-brexit-half-earlier-forecast-reuters-idUKKBN1H40ZV">Reuters — 5000 finance jobs may be moved by Brexit, half earlier forecast;</a> <a href="https://www.theguardian.com/business/2018/jul/02/barclays-to-move-uk-jobs-to-frankfurt-ahead-of-brexit">The Guardian — Barclays to move UK jobs to Frankfurt ahead of Brexit;</a> <a href="https://www.theguardian.com/politics/2017/dec/11/brexit-city-of-london-jobs-ey-dublin-frankfurt">The Guardian — Brexit: City of London will lose 10,500 jobs on day one, says EY;</a> <a href="https://www.theguardian.com/politics/2017/nov/20/its-frankfurt-and-paris-goldman-sachs-names-post-brexit-hubs">The Guardian — It’s Frankfurt … and Paris: Goldman Sachs names post-Brexit hubs;</a> <a href="https://www.bloomberg.com/graphics/2017-brexit-bankers/">Bloomberg — The Great Brexit Exodus that Wasn’t</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae1a7e98f5cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tableau Performance Optimization]]></title>
            <link>https://medium.com/@key2market/tableau-performance-optimization-2c8d4d53358?source=rss-fb833304e136------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c8d4d53358</guid>
            <category><![CDATA[tableau]]></category>
            <dc:creator><![CDATA[Key2Market]]></dc:creator>
            <pubDate>Wed, 05 Dec 2018 15:56:18 GMT</pubDate>
            <atom:updated>2018-12-05T15:56:18.881Z</atom:updated>
            <content:encoded><![CDATA[<p>When we work with large amount of data, multiple data sources, dashboards and workbooks, which heavy loaded with individual views and elements to control those views (and nowadays this situation is quite common), we often facing the problem of reports’ performance. In some cases that might not be a big problem, for example, when we use Tableau not as end user reports tool, but for some kind of data analysis, visual check of data or when users get reports in PDF files or in Power Point. <br> But if we use Tableau as the last stage of BI process, then performance becomes a ‘big deal’, especially considering the fact, that we use to work with something that responds immediately and even one second delay in report’s response may be annoying or the reason of report’s denial.</p><h3><strong>Performance optimization steps</strong></h3><ol><li><strong>Data.</strong> That’s may be a key factor, because if we work with static excel file with few columns and 100 rows, even workbooks with worst design will be fairly quick, but we need to work with table which has 100 m. rows and there is no way to aggregate it — even best performance technics may not help us to make reports really fast.</li></ol><ul><li>Use data that is relevant to analysis. Cut useless rows and columns, use data source filters or create data source that contains required data. Maybe we can use sample of data to provide analysis or trim records by date and so on.</li><li>Use data aggregation. Some information is really granular and, in most cases, we don’t need such granularity in reports. For example, if we have table with records which tracks some information every minute 24/7, but what user need is to see daily information. In this case we need to make daily aggregation (in database or in files we use as data source) and this single step will help us to decrease row count in 1440 times.</li><li>If you use information from database — keep as much heavy calculation and data transformations as possible on database side. For example, join multiple data sources in one view, provide row level calculation (as this type of calculation is not very efficient in Tableau) and so on.</li><li>Use data extracts as they are more efficient (in most cases) than live connection.</li><li>Try to decrease number of data sources and avoid data blending if it’s not really necessary.</li><li>Try to avoid using custom SQL, especially for large data sets and complex queries. Tableau sends custom SQL to database within sub-query so it can be performed more efficient on database side.</li></ul><p>2. <strong>Filters.</strong> Number of filters used matters as well as their configurations.</p><ul><li>Use only relevant filters and if they are really necessary for report. Each filter creates additional query for database, hence more filters we have lower performance will be.</li><li>In dashboards use action filters instead of quick filters. Action filters only work on the dimensions/measures that are visible on the sheet while quick filters scan all data in data source.</li><li>Use context filers. While ‘normal’ filters scan all data and they are independent, context filter filters data at first and other filters ‘work’ only with filtered by context filter data. Imagine that we have data by ‘country’ for many countries and some report with many filters created based on that data. If we add ‘country’ to context and chose, let’s say, ‘USA’ all other filters (e.g. sum of sales, number of orders or whatever information we have there) will filter only USA data.</li><li>Use filters with “include” instead of “exclude” value type.</li><li>Avoid using “only relevant values” option for filters as it creates additional layer of check of other quick filters.</li><li>Avoid sorting filter’s data. Especially for filters with many values (e.g. filter by ID or SKU) this may increase time of response.</li><li>Keep in mind filter sequence of application of different filter types: Extract filter -&gt; Data source filters -&gt; Context filters -&gt; Dimension filters -&gt; Measure filters -&gt; Filters from calculated fields.</li><li>Consider zooming instead of filtering when it applies to views with many marks or maps, because zooming does not filter data, hence it doesn’t require additional queries.</li></ul><p>3. <strong>Calculated fields.</strong> Tableau calculations may impact performance dramatically if we use a lot of them and without efficiency aspect in mind.</p><ul><li>Use table calculations (WINDOW, RUNNING calculations etc.) appropriately. Because these calculations perform on query result set it creates additional level of complexity for Tableau and if we have a lot of data in a view and one or more table calculations applied, the speed of such report may be impacted. That’s why perform calculations on aggregated data and try to avoid too many data in a view (e.g. table with a thousand of rows).</li><li>You may try to use “Assume referential integrity option” option to improve calculation performance, especially LOD calculations.</li><li>Calculations with booleans and integers process faster than ones with strings In case of yes/no, good/bad etc. make sure to replace those by True/False or 0/1 pairs.</li><li>Use parameters with numeric values if possible. For example, even if you want to display strings as parameter options, you can use value 1, 2, 3 and so on and assign to it some meaningful string by “display as” feature (1 = Country A, 2 = Country B etc.) which will be visible for users. This way we take advantage of ‘faster’ data types in calculations and user still see strings as parameter options.</li><li>Distinct count (COUNTD) is very slow function so try to avoid is if possible, or create additional columns for this in data source.</li><li>Make sure that all fields have correct data types (e.g. dates have date type, not string, same with numeric types).</li><li>In logical calculation test for most likely outcome first. For example, IF [Country] = &lt;Most likely value&gt; THEN do this ELSEIF IF [Country] = &lt;Second most likely value&gt; THEN Do that ELSE Do something else END.</li><li>Also try to use ELSEIF instead of nested Ifs, because nested IF create nested CASE WHEN statements in query and slows performance.</li></ul><p>4. <strong>Visualizations.</strong> As with filters and calculations: more views and their data sources we have — slower response time of our reports will be.</p><ul><li>Reduce the number of marks on the view. It is also quite straight — more marks, more time to render the view. Good example for “too many marks” is scatter plot, when we have too many points so they merge in one area without clear (or at least some) distinction between each point.</li><li>The same applies to table — views with large tables may contain so many data, that they will be a road block for good performance of the view.</li><li>Use custom shapes and images wisely, especially if you use multiple types of custom shapes and a lot of marks per each shape. In this case it would be better to restrict number of shapes, maybe use some built-in types and keep ‘shape’ itself as simple as possible (small resolution and size).</li><li>Use symbol maps instead of filled maps, they take less time to render.</li></ul><p>5. <strong>Dashboards.</strong></p><ul><li>Restrict number of worksheets in a dashboard. High number of worksheets leads to poorer performance.</li><li>Try to use fixed size if it’s possible. Generally fixed size work faster than automatic.</li><li>Delete unused worksheets from workbook.</li><li>Remove legends if they are not useful. Usually they don’t have serious impact on performance, but legends with multiple domains may require some additional rendering.</li></ul><p>6. <strong>Other factors.</strong></p><ul><li>Useless tooltips. Also you can explicitly aggregate dimensions to either MIN() or MAX() to avoid default ATTR() aggregation, that uses both MIN and MAX to calculate.</li><li>Poor database (data source) design. And in some cases, we can’t change data source and don’t have access to the source itself, only by using it in Tableau.</li><li>Users machine.</li><li>Bad network connection or bandwidth (for live connections).</li><li>Usage of old versions of Tableau desktop, which may be slower and/or not support some functionality.</li></ul><p>7. If you use <strong>tableau server or tableau online</strong> you may also consider points below, although in most cases workbooks on the server just reflects performance of desktop reports:</p><ul><li>Use extracts published to server as data source if this possible (no need to live data update and size of data source allows to create extract).</li><li>If you use refreshable extracts make sure that refresh schedule set correctly. For data source which updates once per day there is no need to refresh extract every hour.</li><li>Use incremental refresh of extract. By using this type of refresh, each time extract refresh adds only new data by specified column. For example, we have source with sales data by date for current year and extract contains all data up to yesterday. On the next day full refresh replaces all rows by new data, but incremental refresh will leave existing data and add new records by date column (records for only 1 day). But we must be sure that data doesn’t change historically. Also note that Tableau has date-time precision up to 1/1000 of a second, if data source has higher precision — duplicated rows may be created.</li><li>We can apply “Compute calculations now” options for extracts (right click on extract — extract — compute calculations now) with embedded calculations. But this option recommended only if performance is really bad and extract contains heavy calculations for processing (manipulations with large (or large number of) strings, regex etc.). This option pre-compute calculations in advance and their values stored in extract. Note that this option doesn’t work with NOW(), TODAY(), LOD and table calculations.</li></ul><h3><strong>Performance recording</strong></h3><p>We discussed how to tune workbooks in order to increase performance. But how can we assess what part of workbook makes it slow? And even if we can, maybe our assessment will not be correct.</p><p>For this goal, Tableau has built-in tool that may help to spot weak parts of a workbook — it is performance recording. It can be found in Help -&gt; Settings and Performance -&gt; Start Performance recording. When “Start Performance recording” clicked, Tableau records performance information about key events as you interact with a workbook. To stop recording, click “Stop Performance recording” (Help -&gt; Settings and Performance -&gt; Stop Performance recording), after that Tableau will automatically create separate workbook with performance parameters, similar to this one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*gIIeJL3S_nh0if2Ix5uucw.png" /></figure><p>You can then view performance metrics to analyze and troubleshoot different events that are known to affect performance. Click on “Executing Query” bar shows underlying query, which Tableau use to get data from a source.</p><p>In addition, there are third party tools for performance testing and monitoring, most of them can be used with Tableau Server. Also you can monitor some of background tasks and other metrics on Tableau server by viewing pre-defined reports under “Settings” menu.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c8d4d53358" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple number format types of the same field in Tableau]]></title>
            <link>https://medium.com/@key2market/multiple-number-format-types-of-the-same-field-in-tableau-7e146f9c5505?source=rss-fb833304e136------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e146f9c5505</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[visualization]]></category>
            <dc:creator><![CDATA[Key2Market]]></dc:creator>
            <pubDate>Mon, 01 Oct 2018 09:24:13 GMT</pubDate>
            <atom:updated>2018-10-01T09:24:13.989Z</atom:updated>
            <content:encoded><![CDATA[<p>Sometimes we need to apply multiple format types to the same field in order to display, for example, variable number format.</p><p>In real life I experienced such situation many times and Tableau do not offer simple build-in functionality to do this.</p><p>Let’s consider a common case when we have to parameterize metric in monetary and percentage values. Let’s take build-in data set “Sample Superstore” for demonstration.</p><p>So, the task is to create a report that shows monetary value of net profit and profit-to-sales % on the same view by using parameter for switching displayed content. It is fairly simple to do:</p><p>First of all, we need to create these fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*toMtxcOa_HRCb4_GHyzw5Q.png" /><figcaption>We need to exclude 10% tax from profit to get net profit</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*kR_EKNTxvxqeKCa4BdZsGA.png" /><figcaption>and calculate net profit to sales ratio</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*nHN-bJGF0o6QB61sQefm8Q.png" /><figcaption>Then we need to create parameter for our fields</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*vj5bi-sqMNvJiQoTWGQvFA.png" /><figcaption>and create calculation field that will be used in report</figcaption></figure><p>We will use simple table for example, it shows us last 20 days of net profit and profit to sales ratio:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*YsF14BD79yid5zAOeXDa5A.png" /></figure><p>But notice the values of our metric, they show without any formatting.</p><p>For monetary values and percentages we see just floats. We can format “Displayed Metric Calculation” field, but what options do we have? Currency number format will give us what we want for “Net Profit” but “Profit to Sales, %” format then will be inappropriate, and vice versa.</p><p>Of course, in some cases we may leave it as it is, but if we are going to show this report for C-level management or investors, or maybe we have much more options in parameter and they are not self-explanatory that appropriate number format can help a lot.</p><p>So, the option here is to adjust “Displayed Metric Calculation”. Here what we need to use for this example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*SpDkRftI4lvQ5bCMG5Z6bQ.png" /></figure><p>These simple manipulation with values and conversion to a string make our metric’s number format very flexible so we can set it up like we need. This example is not going to get detailed instruction on how to do it for every case, it rather gives an idea about approach we can use to deal with such tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*yivk9Siv480PVZlx-xApAg.png" /><figcaption>Monetary values</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*YvWKLTa3EaPDBKjvRYP_ZA.png" /><figcaption>Percentages</figcaption></figure><p>Note that since the final calculation has string type values, we may need to adjust the view to represent information with charts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*alQI4A9iFrawTu-N9zHCfw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e146f9c5505" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Custom date periods in Tableau]]></title>
            <link>https://medium.com/@key2market/custom-date-periods-in-tableau-198e28e04d7?source=rss-fb833304e136------2</link>
            <guid isPermaLink="false">https://medium.com/p/198e28e04d7</guid>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[timeseries]]></category>
            <category><![CDATA[tableau]]></category>
            <dc:creator><![CDATA[Key2Market]]></dc:creator>
            <pubDate>Mon, 03 Sep 2018 08:56:06 GMT</pubDate>
            <atom:updated>2018-09-03T09:13:01.978Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post we will show you how to create custom date periods in Tableau.</p><p>The flexibility of this field will be defined by number of periods displayed and periods itself (weekly and monthly in our case but new periods can be easily added). The key point here is to keep the same number of periods, e.g. user choose 4 periods and he can switch to 4 months or 4 weeks.</p><h4><strong>Custom date field with variable number of periods for different aggregation</strong></h4><p>It is relatively easy to create custom period that displays data in different time periods chosen by users. <br> It may be useful for some readers so we will cover how to create such field.</p><p>For this purpose, we need to create a parameter with periods. Like the one below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*fetOKY-YtmJUPW5m3_g15g.jpeg" /><figcaption>Click “Create Parameter”…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*1YHSIcxtUj-KkuJe9pNLYw.jpeg" /><figcaption>…and fill the template</figcaption></figure><p>Than create custom dates from the date field you want to use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*bA8M6RBVwELfORRJ5xvbQg.jpeg" /><figcaption>Click Create -&gt; Custom date from you date field</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*YHQKUv42aPRr-qz1kYB0iQ.jpeg" /><figcaption>and add date periods you need for analysis</figcaption></figure><p>We will create three periods: daily, weekly and monthly. You can skip daily if the data is already aggregated by days. You can use only higher level of date aggregation. For example, if date field is aggregated by weeks you can use weekly, monthly, quarterly, yearly periods but not daily, hourly etc.</p><p>Now, all elements are ready and we can create calculated field:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*Df2XcLBOZbK6SCJggQqrkw.jpeg" /><figcaption>Custom date periods calculation</figcaption></figure><p>Now we can use this field for our reporting purposes.</p><p><strong>Custom date field with the same number of periods for different aggregation</strong></p><p>To create date range with custom periods but same number of periods we need to implement few additional fields.</p><p>First of all, we will add new parameter “Number of periods”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*Gd9QxjylEPTOnB0iU9-BJg.jpeg" /></figure><p>Then we need to add two calculated fields (if you recall we build second type of custom date periods for months and weeks), we will call them “Start Date of a Month” and “Start Date of a Week”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*gbLR8dID2ubF-kqfYLD4IQ.jpeg" /><figcaption>Calculation to find first date of range for monthly periods</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*AdJb6eduJYpBZFAUwHPaaA.jpeg" /><figcaption>Calculation to find first date of range for weekly periods</figcaption></figure><p>The purpose of these fields is to find the start date of first period in specified range.</p><p>For example if we choose weekly periods and 3 as number of periods then “Start Date of a Week” will find a first day of the third week from now:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/178/1*X4olE0eHXb2wbAZ-lV0blg.jpeg" /></figure><p>The same applies to months — it will give us the first date of the month N months ago.</p><p>Please note than for weekly data you may want to change start date of the week from US to EU standards (from Sunday to Monday as start of the week). Also you can change the start of fiscal year there adjust calculations for your company goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*Tc1kYDudy8mb_C89fjD4Cw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*yZLSiumAxqnGajS8RNGfTg.jpeg" /></figure><p>Final calculation of our metric is next:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*ZvVRCPXSGcrYv4xebOgSHA.jpeg" /></figure><p>Based on user input (period type and number of periods) we take a period that is between firs date of a period and today and aggregate.</p><p>Final step is to add this one to reports. To do this we need to add it to filter in order to display only not null values (Range filters — Special — Not null dates). Also note that you should now aggregate calculation field, it must be not aggregated to work properly. To place it as not aggregated, you can right click and drag the fieldm then choose one of the two top options ({Name of the field}(Continuous) or {Name of the field}(Discrete)):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*2iMLuS8qauFtbzYSAAzRoA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=198e28e04d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sending Apache Airflow Logs to S3]]></title>
            <link>https://medium.com/@key2market/sending-apache-airflow-logs-to-s3-8d251ba80826?source=rss-fb833304e136------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d251ba80826</guid>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Key2Market]]></dc:creator>
            <pubDate>Sat, 18 Aug 2018 05:06:51 GMT</pubDate>
            <atom:updated>2018-08-18T05:06:51.760Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xp7FMq2X3Lh9px0GOD_YWg.png" /></figure><p>I have spent majority of the day today figuring out a way to make Airflow play nice with AWS S3. Not that I want the two to be best friends, but just the log shipping from Airflow to S3 would be just fine. The adventure began when one of the client machines was filling up with logs at 2Gb per day and boosting up the storage was not scalable. And we like scalable, because its a buzz word and <a href="https://medium.com/conquering-corporate-america/10-tricks-to-appear-smart-during-meetings-27b489a39d1a">everyone</a> is using it.</p><p>So, it started fairly innocently with me reading <a href="https://airflow.apache.org/configuration.html#logs">these</a> instructions, then <a href="https://stackoverflow.com/questions/48817258/setting-up-s3-logging-in-airflow">this</a> StackOverflow post, than <a href="https://stackoverflow.com/questions/48817258/setting-up-s3-logging-in-airflow">this</a>, and <a href="https://stackoverflow.com/questions/48817258/setting-up-s3-logging-in-airflow">this</a> and <a href="https://stackoverflow.com/questions/44780736/setting-up-s3-for-logs-in-airflow/44796247#44796247">this</a>. Also <a href="https://airflow.readthedocs.io/en/latest/howto/write-logs.html">these</a> instructions, and <a href="https://github.com/apache/incubator-airflow/blob/master/airflow/hooks/S3_hook.py">this</a> GitHub gist.</p><p>Armed with all this knowledge, a bit of free time and a lot of patience, I have spent a considerable amount of time playing this various implementation, only to find that none match my requirements in a sense that I want only one singular place to edit any config variable and that place is already taken by Environmental variables.</p><p>We will open the Pandora’s Box discussion of using or not using Environmental variables at another time… For now, we needed to define everything through them.</p><p>The most accurate article that I have found is <a href="https://stackoverflow.com/questions/44780736/setting-up-s3-for-logs-in-airflow/44796247#44796247">this</a> one, and it is the one I will be using to set up step by step instructions:</p><h3>The magic</h3><ul><li>Set up your environmental variables:</li></ul><pre>export AIRFLOW__CORE__BASE_S3_LOG_FOLDER=s3://${AWS_S3_BUCKET_NAME}/airflow<br>export AIRFLOW_CONN_S3_URI=s3://${AWS_ACCESS_KEY_ID}:${AWS_SECRET_ACCESS_KEY}@${AWS_S3_BUCKET_NAME}/airflow</pre><p>It is maybe a good time to mention that we have set up our S3 bucket and AWS access keys as environmental variables: AWS_S3_BUCKET_NAME, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY. This works well for docker containers too.</p><ul><li>Create directory $AIRFLOW_HOME/hooks and download the S3 hook into that directory from <a href="https://github.com/apache/incubator-airflow/blob/master/airflow/hooks/S3_hook.py">here</a>. There is also an S3 hook in the Airflow <a href="https://airflow.readthedocs.io/en/latest/_modules/airflow/hooks/S3_hook.html">Documentation</a>, but I assume it is outdated as it is different from the one in GitHub.</li><li>Create a directory $AIRFLOW_HOME/config to store config file there. Add 2 files into that directory: empty __init__.py and log_config.py with the content from <a href="https://github.com/apache/incubator-airflow/blob/1.9.0/airflow/config_templates/airflow_local_settings.py">this</a> file.</li><li>Customize the following portions of the log_config.py. Note the <strong>BASE_S3_LOG_FOLDER </strong>which we exported earlier on. It is important not to miss this part.</li></ul><pre>Rename DEFAULT_LOGGING_CONFIG to LOGGING CONFIG<br>LOGGING_CONFIG = ...<br><br>Add a S3TaskHandler to the &#39;handlers&#39; block of the LOGGING_CONFIG variable<br>&#39;s3.task&#39;: {<br>    &#39;class&#39;: &#39;airflow.utils.log.s3_task_handler.S3TaskHandler&#39;,<br>    &#39;formatter&#39;: &#39;airflow.task&#39;,<br>    &#39;base_log_folder&#39;: os.path.expanduser(BASE_LOG_FOLDER),<br>    &#39;s3_log_folder&#39;: <strong>conf.get(&#39;core&#39;, &#39;BASE_S3_LOG_FOLDER&#39;)</strong>,<br>    &#39;filename_template&#39;: FILENAME_TEMPLATE,<br>},<br><br> Update the airflow.task and airflow.task_runner blocks to be &#39;s3.task&#39; instead &gt;of &#39;file.task&#39;.<br>&#39;loggers&#39;: {<br>    &#39;airflow.task&#39;: {<br>        &#39;handlers&#39;: [&#39;s3.task&#39;],<br>        ...<br>    },<br>    &#39;airflow.task_runner&#39;: {<br>        &#39;handlers&#39;: [&#39;s3.task&#39;],<br>        ...<br>    },<br>    &#39;airflow&#39;: {<br>        &#39;handlers&#39;: [&#39;console&#39;],<br>        ...<br>    },<br>}</pre><ul><li>Update $AIRFLOW_HOME/airflow.cfg to contain the following adjustments. I have to be honest, I missed this part and spent 20 minutes wondering why my setup was not working. You do not need to change the remote_log_conn_id because we have exported our S3 connection in AIRFLOW_CONN_S3_URI</li></ul><pre>task_log_reader = s3.task<br>logging_config_class = log_config.LOGGING_CONFIG</pre><ul><li>Restart the Airflow webserver and scheduler</li><li>Manually kick of a small and quick task to ensure the logs are written to S3. They should also be visible in the Airflow DAG task UI.</li></ul><p>That is all folks! Hope this will save you some time in setting up practical Airflow implementations. For any questions BI you can always contact the <a href="http://www.key2market.com/">K2M</a> team (who did not build Airflow, nor do we manage it, but we are really good at BI).</p><p>Kirill Andriychuk</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d251ba80826" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tableau tips and tricks]]></title>
            <link>https://medium.com/@key2market/tableau-tips-and-tricks-c249db32e8b0?source=rss-fb833304e136------2</link>
            <guid isPermaLink="false">https://medium.com/p/c249db32e8b0</guid>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Key2Market]]></dc:creator>
            <pubDate>Fri, 03 Aug 2018 09:24:23 GMT</pubDate>
            <atom:updated>2018-08-03T09:24:23.555Z</atom:updated>
            <content:encoded><![CDATA[<p>With help of Tableau we can create presentable and effective data visualizations. At the same time, it has a wide range of functions that allow to conduct in-depth analysis, make visualization simpler and more understandable for perception, to present the results of work in a convenient format and save your time. But in most cases, these functions do not lie on the surface, their use is not intuitive, while working in the Tableau for a while you may not even know about their existence. In this article we will tell you about the basic tips and techniques that will make your work in Tableau easier.</p><h3><strong>Content</strong></h3><p><strong>I Data tips</strong></p><ol><li>To bring in data quickly</li><li>Get the original data from .twbx file</li><li>Replace one measure/dimension on other for all sheets</li></ol><p><strong>II. Analytical tips</strong></p><ol><li>Bar into a bar</li><li>Building a calendar</li><li>Advanced sorting</li><li>Customized average line</li><li>Using ‘random’ function</li></ol><p><strong>III Design tips</strong></p><ol><li>Rotate vertical axis label in horizontal</li><li>Put axis X in the top of the chart</li><li>Clear formatting quickly</li><li>Show specific mark labels</li><li>Quick way to get a color on the chart</li><li>Default properties</li><li>Show/hide ‘null’ indicator</li><li>Add space between rows or columns</li></ol><p><strong>IV Presentation tips</strong></p><ol><li>Alighting to grid and sizing floating objects</li><li>Device preview</li><li>Make presentation dashboard not clickable</li></ol><h3><strong>I Data tips</strong></h3><ol><li><strong>To bring in data quickly</strong></li></ol><p>Example 1. You can open a file (let’s take Excel spreadsheet as an example) on your computer, pick one and just drag it right onto any place in Tableau.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GFJQWGwZFc9T2jYeoJveyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*FUmXx9l4bQjxf84Z6H2Dfw.png" /></figure><p>Example 2. You can just open your Excel workbook, select and copy data, then on Tableau panel click “File” =&gt; “Paste”, and the data will be loaded into a new workbook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*gBUroFJ3uY7BOow0cF3P5Q.png" /></figure><p><strong>2. Get the original data from .twbx file</strong></p><p>Let’s say someone sent you a .twbx file, and you want to get the original data from it. In such case, at first you need to unpack the file. Then open the ‘Data’ folder in unpacked workbook, and you’ll find the file with original data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p9RnXxDkUqEYEtS9dSRjwg.png" /></figure><p><strong>3. Replace one measure/dimension on other for all sheets</strong></p><p>We have several sheets with the charts for ‘Sales’ (map, bars, etc.), which reflect the state of sales. And we want quickly replace measure ‘Sales’ on measure ‘Profit’ on all of these sheets. To do this, right click on ‘Sales’ and choose ‘Replace References’, then in opened menu click on ‘Profit’ and ‘OK”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*uypvaAvKFTU1wbi_va6fJQ.png" /></figure><h3><strong>II.</strong> <strong>Analytical tips</strong></h3><ol><li><strong>Bar into a bar</strong></li></ol><p>Let’s look at a step-by-step example where we compare sales and profits for different products. First, we add “Category” on a row shelf and “Sales” on a column shelf, then drop “Profit” on top of X axis to do a combine axis. Then move “Measure names” to colors, turn off the stack marks in “Analysis”. Then duplicate “Measure names” onto the “Size” shelf and that’s all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IX82ndYM_iX5K63o1i5PEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nzs8BSWc7jdL6D6VDTvKUw.png" /></figure><p><strong>2.</strong> <strong>Building a calendar</strong></p><p>Perhaps you want to see the dynamics of sales or profit by the days of the week or compare the result of the beginning and the end of the month in the usual format of the calendar. For this, drag your “Date” dimension (by right-click) to the columns and rows shelf, in weekdays and week numbers format respectively. Then drag certain measure to the “Color”, and “Date” dimension to the “Label” in a date number format. Also, you can add some formatting according to your needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_W7J32G0I8LyxcxxHsFgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMWvqBd_n3EM88fs09D6fQ.png" /><figcaption>You can customize it further buy adding information you need to labels</figcaption></figure><p><strong>3. Advanced sorting</strong></p><p>For example, we want to sort out the profit in descending order by two dimensions — category and product:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57SnmenLW49GrGwQHHsTYA.png" /></figure><p><strong><em>Method 1.</em></strong> Drag ‘SUM(Profit,$)’ using Ctrl right next to it, so you’ll have two charts, then double-click on duplicated ‘SUM(Profit,$)’ and put a negative sign in front of it and make it discrete. Then blue pill ‘-SUM([Profit,$])’ move down in between ‘Category’ and ‘Product’, and hide its header.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IuFBGDZta_I8ZOEVCb23JA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S7Frb65bZn_QojTH1r3xAA.png" /><figcaption>Result of the sorting</figcaption></figure><p><strong><em>Method 2.</em></strong> Select two dimensions, holding Ctrl and create a combined field, which must be placed right between those dimensions in ‘Rows’ shelter. Then in context menu you may hide headers, choose sort order, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9HzbrJ94QODQ8s91eye95g.png" /></figure><p><strong><em>Method 3.</em></strong> Let’s say we have three dimensions in the chart and want to sort out ‘Profit’ measure by them. First, you need to create a parameter for sorting by ‘Category’ and ‘Product’. Then, create two calculating fields for those dimensions to make parameter work. Finally, you may hide headers for calculated fields, add some color and other formatting you need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDvA93PwnlgxJ8TLcSExXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dLw18dPev6h2OlYbi6n6Hg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VA_UkLMjRPEvIMsjfVm7ug.png" /></figure><p><strong>4. Customized average line</strong></p><p>For a clear picture of the analysis, you can add an average line on chart with additional formatting. Just double-click on ‘Average line’ under ‘Analytics’ section to add an average line, then right click on it and choose ‘Format’ (to change font, color, alignment, etc.) or ‘Edit’. For example, we can change label to see the average value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cT02w17APF-Xc8GPLAgMmg.png" /></figure><p><strong>5. Using ‘random’ function</strong></p><p>For example we want to show a distribution of sales values of all the years within the months. But visualization is not very good for perception (see below):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*awlrA2cJ748Ea56lxzOEvQ.png" /></figure><p>In this case, we can use function ‘Random’, just type “random()” in the columns shelter and change marks type on ‘Circle’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njP_wyE6B3pD_n2kfe1f8Q.png" /><figcaption>Maybe in this case its help is not so big, but imagine if we would have 100 years of history in data set.</figcaption></figure><h3><strong>III Design tips</strong></h3><ol><li><strong>Rotate vertical axis label in horizontal</strong></li></ol><p>To do this you need to type in a “Rows” line a text in quotes, then double-click your axis and delete the text in a title row.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*kzFODXgQdC1FTJgvSfkFTw.png" /></figure><p><strong>2. Put axis X in the top of the chart</strong></p><p>You can do this under ‘Analysis’ tab, in ‘Table layout’ with ‘Advanced’ options by unchecking box ‘Show innermost level at bottom of view when there is a vertical axis’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*Z0zv0TT_oQhj9N57GSPDnA.png" /></figure><p>Or you could do it in another way. Just create a copy of ‘Category’ dimension and put it right next to the ‘Category’ in ‘Columns’ shelter, then hide a bottom header.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*MQevDL3YKA6vEV9_1BsJow.png" /></figure><p><strong>3. Clear formatting quickly</strong></p><p>For example, you have a lot of formatting on the worksheet and your goal is to get rid of it quickly. For this, right-click on a certain measure/dimension, choose “format” in a context menu, click on the formatting section you need, then in section “Default” right-click on needed function =&gt; “Clear”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*STfsw0FrfRqhB1XUdnx78g.png" /></figure><p><strong>4. Show specific mark labels</strong></p><p>You need to click on certain marks holding Ctrl, then hover right click on one of them and choose ‘Mark Labels’ -&gt; ‘Always Show’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*kJSehH0iaePZ9mEf3UaF8A.png" /></figure><p><strong>5. Quick way to get a color on the chart</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*iP2pV4QGBazvL9kzOe1EsA.png" /></figure><p><strong>6. Default properties</strong></p><p>In some cases, you may need to change formatting or aggregation for some of the measures for the whole time. In such cases being able to set the default properties will save you a lot of time. For example, if you drag some measure to the columns or rows it will always come at the aggregation of ‘Sum’ and with a standard way of formatting. To change that, right click on some measure and in section ‘Default Properties’ –&gt; ‘Aggregation’ choose, for example, ‘Average’ type. So, in next time, when you drag some measure into the columns or rows shelter on any sheet of exact Tableau workbook, it will come at the aggregation of ‘Average’. In exactly the same way, you can define the default formatting for measures.</p><p>The same logic applies to other categories under ‘Default Properties’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*3kDegaoh05FgUkChv1cz6Q.png" /></figure><p><strong>7. Show/hide ‘null’ indicator</strong></p><p>To hide ‘null’ indicator on your chart you need to right click on it and choose ‘Hide Indicator’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*JmenFf8Z0vQzec3mXPaOJw.png" /></figure><p>If you need to get back hidden indicator, you have to go up to ‘Analysis’ menu and check ‘Show’ for ‘Special values’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*_71LmwNX6s_NcC1l2l1SjA.png" /></figure><p><strong>8. Add space between rows or columns</strong></p><p>To make visualization easier to perceive, it makes sense to separate the different categories. Under the ‘Analytics’ panel we double click on ‘Totals’, then click on any totals bar and in automatic menu check ‘Hide’. Then right click on any title ‘Total’ and in format menu make labels blank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yjutogua9q_QfvS8lB012w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*tNOxF5A-WwycK2MH38Dtng.png" /></figure><p>To put <strong>spaces between columns</strong> you may use INT function, for this type in the ‘Columns’ shelter “INT(NULL)” wherever it needed. Then double click on an axis ‘INT(NULL)’ -&gt; ‘Edit’, and in ‘General’ section you can get rid of the title, and in ‘Tick Marks’ section check ‘None’ for ‘Major Tick Marks’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvI6TConSrNZ3gtOoKl8mA.png" /></figure><h3><strong>IV Presentation tips</strong></h3><ol><li><strong>Alighting to grid and sizing floating objects</strong></li></ol><p>If you want to make your floating objects on dashboard very precise, there is a very easy way for this: under your “Layout” tab you can control height and weight of your objects, as well as X and Y placement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3LY6hTJF2BIqDnaJl10rQ.png" /></figure><p><strong>2. Device preview</strong></p><p>We have built a dashboard and now we want to see how it will be looking on different devices. For this, you can use option ‘Device Preview’ under the ‘Dashboard’ section. For example, we find out that our dashboard looks not so great on a phone, but on the other types of device everything is good. To change sheets layout and formatting only for a phone type of device, click ‘Add Phone Layout’ on a device preview panel, and then ‘Custom’ under ‘Layout-Phone’. So now all changes applied will be valid only for the phone device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UQ15ZAoBbuTdRm1Janpsgw.png" /></figure><p><strong>3. Make presentation dashboard unclickable</strong></p><p>Let’s say you do not want the user to be able to click on anything or even hover on dashboard in presentation mode. You need to go ahead to ‘Dashboard’ menu, switch object type to floating and drag ‘Blank’ object over top of the dashboard. After this, if you go back into presentation mode, you’ll see then objects become unclickable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yadAhiolLpq-sXmXRc0A9w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c249db32e8b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>