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
Arrow up icon
GO TO TOP
QlikView Essentials

You're reading from   QlikView Essentials Want to solve your Business Intelligence headaches? Learn how QlikView can help, and discover a powerful yet accessible BI solution that lets you harness your data

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781784397289
Length 166 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Chandraish Sinha Chandraish Sinha
Author Profile Icon Chandraish Sinha
Chandraish Sinha
Arrow right icon
View More author details
Toc

Using Set Analysis


We will perform a few Set Analysis expressions to understand the power of Set Analysis. It is important for the Adventure Works company to perform a year-by-year comparison of sales. It will help them in asking questions about the years when sales went down and look for the reasons.

Use QlikEssentials_Presentation.qvw for this example. Navigate to the Using Functions tab, right click on any empty space, and select Copy Sheet. This will create a copy of the sheet:

  1. Modify the title of the sheet as Comparative Analysis and remove the two tables from the sheet.

  2. Create a straight table. Select ProductLineDesc as a dimension and label it as Product Line. Check Suppress When Value is Null.

  3. Create an expression for sales for the year 2006. This will use the Set Analysis syntax:

    Sum({<Year = {'2006'}>}LineSalesAmount) 

    Add an expression for sales for the current year and label it as =Max(Year):

    Sum({<Year = {$(=Max(Year))}>}LineSalesAmount)

    Add an expression for sales for the...

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