Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Effective Business Intelligence with QuickSight
Effective Business Intelligence with QuickSight

Effective Business Intelligence with QuickSight: Boost your business IQ with Amazon QuickSight

eBook
€20.98 €29.99
Paperback
€36.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Effective Business Intelligence with QuickSight

Chapter 2. Exploring Any Data

QuickSight can analyze data from various sources including Amazon Web Services (AWS) data stores, files in common formats, Salesforce, and popular database engines. QuickSight has a simple interface to connect to these sources and create datasets from them that can be stored in SPICE for subsequent analysis. In this chapter, we will first look at Amazon's big data ecosystem and then review how QuickSight can be used to connect to the various data stores. The following topics will be covered:

  • Amazon's big data ecosystem
  • QuickSight-supported data sources
  • QuickSight-supported data types and data sizes
  • Use case review
  • Uploading your own data from files, RDBMS, and SaaS to QuickSight
  • Editing existing datasets
  • Uploading data using Athena

AWS big data ecosystem

Amazon's big data ecosystem has several software services that enable business insights from data. These services can be broadly classified into four major categories - Collect, Store, Analyze, and Orchestrate, as shown in the following diagram:

AWS big data ecosystem

Figure 2.1: AWS big data ecosystem

Let's look at each category in detail.

Collect

The first step for any BI initiative is to collect data from external systems to Amazon for which AWS has the following services:

  • Direct connect: With direct connect, you can establish private connectivity between AWS and your enterprise data center and provide an easy way to move data files from your applications to AWS for analysis
  • Snowball: Snowball (also known as Import/Export) lets you import hundreds of terabytes of data quickly into AWS using Amazon-provided, secure appliances for secure transport
  • Kinesis and Kinesis Firehose: Kinesis services enable building custom applications that process or analyze streaming data

Store

The...

Supported data sources

QuickSight supports broadly three types of data sources: relational, file, and SaaS. For relational sources it supports Athena, RDS, Redshift, MySQL, and SQL Server sources. For file sources, it supports Excel, CSV, and common log formats in S3. For SaaS it supports Salesforce.

Before we explore data sources, I would like the readers to get familiar with QuickSight concept of data source and dataset. A data source identifies sources like relational database, S3 filesystem, and SaaS system like SAP. A dataset identifies specific data in a data source, for example, a table is a dataset in a RDBMS data source. A dataset is imported into SPICE for fast access.

Now let's explore the list of supported data sources using the following steps:

  1. From the QuickSight home page click on Manage data, which will show a list of existing datasets and a summary of your current SPICE utilization, as shown in the following screenshot:

    Supported data sources

    Figure 2.2: Adding a new dataset

  2. Next from this...

Supported data types

QuickSight supports the following primitive data types: date, float, integer, and string. If you load data from files and/or databases that contain fields that cannot be implicitly converted to the preceding primitive data types, ensure that they are explicitly converted before they are imported to QuickSight. The following table lists the source data types for specific database engines:

Database type

Numeric data types

String data types

Date-time data types

Boolean data types

SQL Server

Bigint

Decimal

Float

Int

Money

Numeric

Real

Smallint

Smallmoney

Tinyint

Char

Nchar

Nvarchar

Text

Varchar

Date

Datetime

Datetime2

Datetimeoffset

Smalldatetime

bit

Aurora, MariaDB, and MySQL

Bigint

Decimal

Float

Int

Integer

mediumint

numeric

Smallint

Tinyint

Binary

Blob

Char

Enum

Set

Text

Varbinary

Varchar

Date

Datetime

Timestamp

Year

Tinyint

PostgreSQL

Bigint...

Supported data sizes

Amazon QuickSight uses SPICE in-memory caching and hence there are some limits to data from files and tables. You can see the amount of SPICE you are using by clicking on Manage data in the top-right corner. Now let's look at the file and table limits in detail.

File limits

Any single file uploaded to QuickSight directly or from S3 must be 1 GB or less. If multiple files are imported from S3, the total size of files specified in the manifest file must be less than 5 GB and the total number of files should not exceed 100. The number of columns in a file should not exceed 200 and the number of characters per row should be less than 25,400.

Table limits

Any table or query result set imported into SPICE must be less than 10 GB. If you are dealing with tables with larger datasets, use filters to reduce the number of records to analyze. Data in any string column must be 511 characters or less.

AWS big data ecosystem


Amazon's big data ecosystem has several software services that enable business insights from data. These services can be broadly classified into four major categories - Collect, Store, Analyze, and Orchestrate, as shown in the following diagram:

Figure 2.1: AWS big data ecosystem

Let's look at each category in detail.

Collect

The first step for any BI initiative is to collect data from external systems to Amazon for which AWS has the following services:

  • Direct connect: With direct connect, you can establish private connectivity between AWS and your enterprise data center and provide an easy way to move data files from your applications to AWS for analysis

  • Snowball: Snowball (also known as Import/Export) lets you import hundreds of terabytes of data quickly into AWS using Amazon-provided, secure appliances for secure transport

  • Kinesis and Kinesis Firehose: Kinesis services enable building custom applications that process or analyze streaming data

Store

The data collected...

Supported data sources


QuickSight supports broadly three types of data sources: relational, file, and SaaS. For relational sources it supports Athena, RDS, Redshift, MySQL, and SQL Server sources. For file sources, it supports Excel, CSV, and common log formats in S3. For SaaS it supports Salesforce.

Before we explore data sources, I would like the readers to get familiar with QuickSight concept of data source and dataset. A data source identifies sources like relational database, S3 filesystem, and SaaS system like SAP. A dataset identifies specific data in a data source, for example, a table is a dataset in a RDBMS data source. A dataset is imported into SPICE for fast access.

Now let's explore the list of supported data sources using the following steps:

  1. From the QuickSight home page click on Manage data, which will show a list of existing datasets and a summary of your current SPICE utilization, as shown in the following screenshot:

    Figure 2.2: Adding a new dataset

  2. Next from this page ...

Supported data types


QuickSight supports the following primitive data types: date, float, integer, and string. If you load data from files and/or databases that contain fields that cannot be implicitly converted to the preceding primitive data types, ensure that they are explicitly converted before they are imported to QuickSight. The following table lists the source data types for specific database engines:

Database type

Numeric data types

String data types

Date-time data types

Boolean data types

SQL Server

Bigint

Decimal

Float

Int

Money

Numeric

Real

Smallint

Smallmoney

Tinyint

Char

Nchar

Nvarchar

Text

Varchar

Date

Datetime

Datetime2

Datetimeoffset

Smalldatetime

bit

Aurora, MariaDB, and MySQL

Bigint

Decimal

Float

Int

Integer

mediumint

numeric

Smallint

Tinyint

Binary

Blob

Char

Enum

Set

Text

Varbinary

Varchar

Date

Datetime

Timestamp

Year

Tinyint

PostgreSQL

Bigint

...

Supported data sizes


Amazon QuickSight uses SPICE in-memory caching and hence there are some limits to data from files and tables. You can see the amount of SPICE you are using by clicking on Manage data in the top-right corner. Now let's look at the file and table limits in detail.

File limits

Any single file uploaded to QuickSight directly or from S3 must be 1 GB or less. If multiple files are imported from S3, the total size of files specified in the manifest file must be less than 5 GB and the total number of files should not exceed 100. The number of columns in a file should not exceed 200 and the number of characters per row should be less than 25,400.

Table limits

Any table or query result set imported into SPICE must be less than 10 GB. If you are dealing with tables with larger datasets, use filters to reduce the number of records to analyze. Data in any string column must be 511 characters or less.

Use case review


For the next few chapters, let's bring in a real-life use case and see how QuickSight can help. For this use case, we will analyze college ratings from the Department of Education (https://www.ed.gov) and combine information from Census. The following diagram shows the overall data intake flow. In the subsequent sections, I will go into detail on each of the individual data intake processes:

Figure 2.4: Use case data sources

Next, we will look into loading data from these various sources to QuickSight.

Permissions on AWS resources


Before we get started on loading data from the various sources, we first need to grant permissions to QuickSight to access your AWS resources. Follow these steps to grant access:

  1. From the QuickSight home page, select Manage QuickSight.

  2. Click on Account settings on the left-hand side menu.

  3. Click on Edit AWS permissions as follows:

    Figure 2.5: AWS account permissions

  4. This will show the Edit QuickSight read-only access to AWS resources, as shown in the next screenshot. From here you can grant/revoke access to QuickSight from Redshift, RDS, S3, and Athena sources. After you make changes, do remember to click on Apply.

    Figure 2.6: Grant access to all sources

Now we can start loading data from various sources and create new datasets in QuickSight.

Loading text files to QuickSight


The easiest way to load data to QuickSight is to just upload it to SPICE, which was explained in Chapter 1, A Quick Start to QuickSight. Another alternative to uploading text files is to use S3 storage and this section will detail this flow.

Uploading a data file to S3

For this demonstration, we will use the file USAStateAbbr.csv, which has a list of USA state codes and the corresponding full names.

Here are the detailed steps to upload a file to an S3 filesystem:

  1. Download the file to your local system (laptop).

  2. Upload the file to AWS S3, login to our account, and from the Services menu select S3.

  3. Select the S3 bucket or create a new S3 bucket. In the next screenshot, I have selected the collegescorecard bucket that I created earlier.

  4. Click on the Upload button, select the local file from your system, and then upload.

    Figure 2.7: Upload text file to S3

  5. Now that...

Loading MySQL data to QuickSight using the AWS pipeline


In this section, we will look into the data flow path from https://www.ed.gov/ to QuickSight that uses a MySQL database. The source data is obtained from the public site and provides information about colleges in the USA.

The path to get to QuickSight involves the following steps:

  1. Uploading data to S3.

  2. Creating an AWS Data Pipeline to load data from S3 to MySQL.

  3. Loading data from MySQL to QuickSight.

Pre-requisites

The following are the pre-requisites to load data from MySQL to QuickSight:

  • Must have an RDS instance created. In this example, I will show an RDS MySQL instance.

  • Data file must be CSV. It should not contain any header rows.

  • You must have a database username and password that can connect to the database from QuickSight with the SELECT permission on some system tables so that QuickSight can estimate the table size. The following table identifies the system tables that the user account needs permission to select:

    Database type

    Access...

Loading Redshift data to QuickSight


In this section, we will look into the data flow path from the US census to QuickSight using a Redshift data store. The source data is obtained from the public site and provides information about household income and population in the USA by zip code. The path to get to QuickSight involves the following steps:

  1. Uploading data to S3.

  2. Creating an AWS Data Pipeline to load data from S3 to Redshift.

  3. Loading data from Redshift to QuickSight.

Pre-requisites

The following are the pre-requisites to load data from Redshift to QuickSight:

  • Must have a Redshift instance created.

  • Data file must be a CSV. It cannot contain a header in the data file.

  • You must have a database username and password that can connect to the database from QuickSight with the SELECT permission on some system tables so that QuickSight can estimate the table size. These tables are pg_stats, pg_class, and pg_namespace.

Uploading data to S3

For this demonstration, we will use the file USACensusSalarybyZip...

Left arrow icon Right arrow icon

Key benefits

  • A practical hands-on guide to improving your business with the power of BI and Quicksight
  • Immerse yourself with an end-to-end journey for effective analytics using QuickSight and related services
  • Packed with real-world examples with Solution Architectures needed for a cloud-powered Business Intelligence service

Description

Amazon QuickSight is the next-generation Business Intelligence (BI) cloud service that can help you build interactive visualizations on top of various data sources hosted on Amazon Cloud Infrastructure. QuickSight delivers responsive insights into big data and enables organizations to quickly democratize data visualizations and scale to hundreds of users at a fraction of the cost when compared to traditional BI tools. This book begins with an introduction to Amazon QuickSight, feature differentiators from traditional BI tools, and how it fits in the overall AWS big data ecosystem. With practical examples, you will find tips and techniques to load your data to AWS, prepare it, and finally visualize it using QuickSight. You will learn how to build interactive charts, reports, dashboards, and stories using QuickSight and share with others using just your browser and mobile app. The book also provides a blueprint to build a real-life big data project on top of AWS Data Lake Solution and demonstrates how to build a modern data lake on the cloud with governance, data catalog, and analysis. It reviews the current product shortcomings, features in the roadmap, and how to provide feedback to AWS. Grow your profits, improve your products, and beat your competitors.

Who is this book for?

This book is for Business Intelligence architects, BI developers, Big Data architects, and IT executives who are looking to modernize their business intelligence architecture and deliver a fast, easy-to-use, cloud powered business intelligence service.

What you will learn

  • Steps to test drive QuickSight and see how it fits in AWS big data eco system
  • Load data from various sources such as S3, RDS, Redshift, Athena, and SalesForce and visualize using QuickSight
  • Understand how to prepare data using QuickSight without the need of an IT developer
  • Build interactive charts, reports, dashboards, and storyboards using QuickSight
  • Access QuickSight using the mobile application
  • Architect and design for AWS Data Lake Solution, leveraging AWS hosted services
  • Build a big data project with step-by-step instructions for data collection, cataloguing, and analysis
  • Secure your data used for QuickSight from S3, RedShift, and RDS instances
  • Manage users, access controls, and SPICE capacity

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Mar 10, 2017
Length: 262 pages
Edition : 1st
Language : English
ISBN-13 : 9781786465009
Category :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Mar 10, 2017
Length: 262 pages
Edition : 1st
Language : English
ISBN-13 : 9781786465009
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 106.97
D3.js 4.x Data Visualization
€32.99
Effective Business Intelligence with QuickSight
€36.99
Data Visualization with D3 4.x Cookbook
€36.99
Total 106.97 Stars icon
Banner background image

Table of Contents

8 Chapters
1. A Quick Start to QuickSight Chevron down icon Chevron up icon
2. Exploring Any Data Chevron down icon Chevron up icon
3. SPICE up Your Data Chevron down icon Chevron up icon
4. Intuitive Visualizations Chevron down icon Chevron up icon
5. Secure Your Environment Chevron down icon Chevron up icon
6. QuickSight Mobile Chevron down icon Chevron up icon
7. Big Data Analytics Mini Project Chevron down icon Chevron up icon
8. QuickSight Product Shortcomings Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
(2 Ratings)
5 star 50%
4 star 0%
3 star 0%
2 star 0%
1 star 50%
A. Zubarev Mar 16, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A great book for those who want to explore ways to depart from the legacy Business Intelligence and explore how QuickSight fits on its own or as part of the vast Amazon Web Services ecosystem.Reading this book first hand has helped me to dispel my fears of the Business Intelligence being a stranger to the Cloud. Turned out, it is quite the opposite, yet, I am personally thrilled now about what is coming out of the Cloud next and what it is ultimately capable of.The author delivers the content in a calm and friendly manner, and provides with info on the latest additions to the product, as well as its road map.The technical level of the book does not require a reader to be at an intimate level with any specific Business Intelligence offerings.Grab a copy and see where and how it may fit in your organization.
Amazon Verified review Amazon
Manwender Singh Nov 21, 2023
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
Not worth investing
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.