Data visualisation with CSV data source and Tableau : Generate report with CSV data source and export as Image

Tableau is an interactive data visualisation products focused on business intelligence. It provides support for integrating various data source like CSV, databases(local and cloud), various big data storage like Apache drill, Hive, etc. It query datasources and then generates a number of graph types and store and retrieve data from its in-memory data engine.

In previous posts we saw how to integrate tableau with Hive and visualise & Integrate Tableau and Apache drill(JSON data source). Here we will use CSV data source to visualise using Tableau.

1. Download CSV datasource.
2. Click Text file form connect section and import CSV file & visualise CSV data in tabular form.

Click on Sheet 1 and open dashboard. Under data tab we have two sections (Dimension and Measures) which contains columns from data source.
Dimension : Independent variable (Order Date, Region, Item and Rep)
Measures:Dependent variable (Unit price and Units)

Visualisation-1: Total Number of Units Sold by representative in each region 
Drag and drop Region & Rep from dimension to working area, which acts columns data. Similarly drag and drop Units from Measures in working area.
Number of units per region and representative (In decreasing order per region)

Alex sold maximum units in Central, Richard in East and James in west region. Does any company interested in number of units sold by their representative or total amount in $.

Visualisation-2: Total amount(In $) Sold by representative in each region
Lets create new field Total from dependent fields (Units and Unit price). Do right click in Measures section and select "Create Calculated field". Using Units and unit price compute TotalSales which listed in Measures section.
Custom field TotalSales computed from Units and Unit Price
Delete Sun(Units) from Rows. Drag & drop TotalSales instead. Now we have a chart with Rep with TotalSales(In $).
Representative VS TotalSales(In $)
Above chart shows Matthew is best Rep in Central, Susan in East and James in West region. TotalSales(In $) gives right insights about sells and representative.

Colourful chart: Drag and drop Region & Rep in Color pallet. It modifies chart and each bar is coloured. If Rep is dragged- each rep is f different color, when Region is dragged - each region is represented with different color.
Colourful grouped representation: By Rep and By Region

Format Labels: Drag TotoalSales in Label pallet (beside Color). It brings total sales value on each bar of chart. Format of currency representation can be changed.
Export worksheet as Image : Go to Worksheet -> Export -> Image...

Try Yourself: Modify existing worksheet and compute bonus for each Rep as 5% of individual's TotalSell and display at top of each Rep.

Next: Create a bar chart Representative and TotalSell along with there yearly bonus. (Yes, Solution of above question)

4 Comments

  1. Replies
    1. There are several ways to visualize data from a CSV (Comma-Separated Values) file. Here's a breakdown of some popular approaches:


      python projects for final year students

      1. Spreadsheet Software:

      Simple and user-friendly: Tools like Microsoft Excel or Google Sheets allow you to import CSV files and create basic charts and graphs.
      Limited customization: These tools might not offer advanced customization options for complex visualizations.
      2. Programming Languages with Libraries:

      Python with Matplotlib or Seaborn: Python is a popular choice for data analysis and visualization. Libraries like Matplotlib and Seaborn offer extensive functionalities for creating various plot types and customizing their appearance.
      R with ggplot2: The R programming language is another powerful option for data analysis and graphics.

      Delete
  2. Cyberattacks can come at any time, and all it takes is one unknowing error to be in serious trouble. Significance of Machine Learning in Cybersecurity

    ReplyDelete
Previous Post Next Post