How to Normalize Data Point Axis in Tableau - CNDRO.LLC
2917
post-template-default,single,single-post,postid-2917,single-format-standard,wp-custom-logo,theme-bridge,bridge-core-2.9.4,woocommerce-no-js,tribe-no-js,ehf-template-bridge,ehf-stylesheet-bridge-child,qode-page-transition-enabled,ajax_fade,page_not_loaded,,qode-title-hidden,qode_grid_1300,footer_responsive_adv,hide_top_bar_on_mobile_header,columns-4,qode-child-theme-ver-1.0.0,qode-theme-ver-27.8,qode-theme-bridge,qode_header_in_grid,wpb-js-composer js-comp-ver-6.7.0,vc_responsive,elementor-default,elementor-kit-2634

How to Normalize Data Point Axis in Tableau

 In this article, I will show you how to normalize data point axis in Tableau. Recently, I got a request to build a Panel chart of all the measures in a data set and I came up with something below (I built this with a sample superstore); 

You can see above that the discount and Quantity line chart looks flat and this was because they share the same axis with Units and DV that have pretty big axes. This is not too good because it is very difficult to see trends in both Discount and Quantity. 

Request: Plot each measure to clearly show their trend. 

Proposed Solution: I came up with the mathematical solution below;  

  1. Pivot all the measure fields, this is done to have all the measures plotted in one panel 
  2. Pick up each data point per date (in my case monthly) 
  3. Pick up the Maximum value of all the Measure field 
  4. Sum the measure field per pivot field (Measure name) 

 Mathematical expression;  

Normalize X = (Xi * MAX (Xi-n)) /∑X (i-n)t 

Where X== b 

MAX (Xi-n) == c 

∑X (i-n)t ==d 

Note that I came up with this formula and it is not a standard formula for Normalizing data 

Tableau Desktop 

I will not go into the details of how to create a panel chart in Tableau. This is how my data looks like after pivoting; 

  1. Pick each data point tagged ‘Data point’ with the formula below; 

 

{ FIXED [Pivot Field Names],DATETRUNC(‘month’,[Weekly Start Date]):SUM([Pivot Field Values])} 

2. Find Maximum value from all the data point, tag this ‘Max’ 

{MAX( { FIXED [Pivot Field Names],DATETRUNC(‘month’,[Weekly Start Date]):SUM([Pivot Field Values])})} 

3. Estimate sum Pivot value per Pivot Name, tagged ‘Sum of Metric’; 

 

{ FIXED [Pivot Field Names]:SUM([Pivot Field Values])} 

How to normalize data axis point in Tableau

4. Finally, compute the Normalized value for each data point using the formula provided above; 

               ([Data point] * [maximum])/[sum per metrics] 

 

Below is how the panel chart looks after normalizing both the Discount and Quantity line trend.

Check out the dashboard on Tableau Public.

Link to the dashboard 

https://public.tableau.com/app/profile/kayode.ajewole7777/viz/PanelChart_16390261051060/AllModel?publish=yes

No Comments

Post A Comment