---
# System prepended metadata

title: '04 Lab [en] - Data visalization'
tags: [Sales and profit anaylsis, Data Visualization, Ad hoc analyis]

---

# 04 Lab [en] - Data visalization 
###### tags: `Data Visualization` `Sales and profit anaylsis` `Ad hoc analyis`.

[TOC]

# Introduction - objective of the exercise
During the exercise we will prepare a dashboard consisting of 4 visualisations:
* a composite map,
* scatter plot: analysis of sales and discounts vs profit,
* bar plot: sales and profit history.
* line plot: sales and profit trend analysis.

[![](https://i.imgur.com/6rDnbJq.png)](https://public.tableau.com/views/GlobalSuperstore_16481236677490/Dashboard1?:language=en-US&publish=yes&:display_count=n&:origin=viz_share_link)
<center><small>Rys.0 Dashboard.</small></center></div>.

# 1. Basic information

## 1.1 Data source
The data source is the *"GlobalSuperstore "* file provided with the exercise. After connecting to the data source, check the simple join option for the two tables: orders and returns (returns - orders that have been returned to the seller).

![](https://i.imgur.com/K40myh1.png)

## 1.2 Data hierarchies
Please organise data into appropriate hierarchies:
![](https://i.imgur.com/caS1x7s.png)


# 2 Preparation of visualisation
## 2.1 Customer map
* two layers on map: market, country
* market geographical role is created from **country**
 

![](https://i.imgur.com/l0Sx4sJ.png)
* define parameter and calculated field, which can change the meauser which will be used for colors on visusalisations

![](https://i.imgur.com/oGuAYkH.png)
![](https://i.imgur.com/sWmSl4c.png)


## 2.2 Sales and Discount vs %Profit
* define the calculated field **Profit%**
* change default properties of Profit%: dafault color for red-black diverging and number format to suffix %.
![](https://i.imgur.com/FgXNw0j.png)


![](https://i.imgur.com/WKZsn8N.png)



## 2.3 Sales and Profit history
* use annotations for annotate marks on the visualisation
* 
![](https://i.imgur.com/LbGtz6U.png)







## 2.4 Sales and profit - trend analysis
![](https://i.imgur.com/x0KNe9d.png)

# 3. Analytical issues

1. In which African countries were sales in Q3 2012 higher than the average for that region?
2. In which EU country were sales in Q4 2011 closest to the median for the region?
3. In which month of 2012-2014 total sales were highest in each market?
4. On which day of the week was the average profit highest in 2012 for EU, US and EMEA (respectively)?
5. Which week number was the worst in terms of sales value in 2011 for Poland, Germany and France?
6. What is the  average annual sales value in Poland for 2012-2014?



