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
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
QlikView for Developers Cookbook

You're reading from   QlikView for Developers Cookbook Take your QlikView training to the next level with this brilliant book that's packed with recipes which progress from intermediate to advanced. The step-by step-approach makes learning easy and enjoyable.

Arrow left icon
Product type Paperback
Published in Jun 2013
Publisher Packt
ISBN-13 9781782179733
Length 290 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Stephen Redmond Stephen Redmond
Author Profile Icon Stephen Redmond
Stephen Redmond
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

QlikView for Developers Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Charts 2. Layout FREE CHAPTER 3. Set Analysis 4. Advanced Aggregations 5. Advanced Coding 6. Data Modeling 7. Extensions 8. Useful Functions 9. Script 10. Improving Performance 11. Security Index

Creating a box plot chart for a simple data set


Box plot charts, or box and whisker charts, are often used for displaying statistical mean and quartile information.

This can be useful for seeing how a value ranges across categories by visualizing the median, the twenty-fifth and seventy-fifth percentile, and the outlying values.

With a simple data set, it is easier to create the chart manually than using the wizard that QlikView providesā€”although there is a slightly strange sequence of actions to go through a "funny"ā€”that you need to know about.

Getting ready

Load the following script:

LOAD * INLINE [
    Country, Value
    USA, 12
    USA, 14.5
    USA, 6.6
    USA, 4.5
    USA, 7.8
    USA, 9.4
    UK, 11.3
    UK, 10.1
    UK, 3.2
    UK, 5.6
    UK, 3.9
    UK, 6.9
];

How to do itā€¦

There is a "funny" in here because you have to tell the chart properties that you are using a box plot, then click on OK and then go back in and edit the properties. Here's how you do it:

  1. Create a new combo chart. Select Country as the dimension.

  2. When the expression editor pops up, just enter 0 as the expression. It doesn't really matter what you enter, you just need to enter something.

  3. Deselect Bar and select Box Plot. At this stage, just click on Finish. Your chart will come up with No Data to Displayā€”this is not a problem.

  4. When you go back into editing the expression properties, you will find five new subexpressions. Enter the following expressions for each of them:

    Box Plot Top

    Fractile(Value, .75)

    Box Plot Bottom

    Fractile(Value, .25)

    Box Plot Middle

    Fractile(Value, .5)

    Box Plot Upper Whisker

    Max(Value)

    Box Plot Lower Whisker

    Min(Value)

  5. Add two new expressions:

    Max(Value)
    Min(Value)
  6. For the two new expressions, deselect the Line option (or Bar if it is selected) and select the Symbol option. Select Circles from the Symbol drop-down menu:

  7. On the Presentation tab, turn off Show Legend. Set the Symbol Size option to 3 pt:

  8. Check that the box plot looks like the following screenshot:

How it worksā€¦

The five separate values define the different portions of the box plot:

Top

The top of the box

Bottom

The bottom of the box

Middle

The median value, the line in the box

Upper Whisker

The upper outlier value

Lower Whisker

The lower outlier value

There's moreā€¦

This recipe is for when you have a simple set of data and you are looking for the statistics across all of the data.

In QlikView, we can have much more control of the values in the box plot, especially where we want to look at averages and percentiles of aggregated data.

As well as box plots, within the combo chart settings there is also a Stock option, which allows us to specify the minimum, the maximum as well as an open and close value.

See also

  • The Using the wizard to create a box plot chart recipe

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image