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 a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781786466365
Category :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

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

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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.