Merging forces
On their own, the Order By
statement and the Peek
function are already powerful. Now, imagine what happens when we combine both of these tools to enhance our input data. In this section, we will use both of these functions to add a new calculated field to our Employment
table (the one we integrated to our data model in Chapter 9, Data Modeling Best Practices).
A refresher
The Employment
table provides information regarding the monthly number of employees per airline. The total number is split between part and full time employees, and it also shows the total
FTEs (Full Time Equivalent).
The objective
The executives of HighCloud Airlines have asked the QlikView team to create a report that shows the monthly change in number of employees in a line chart to discover and analyze peaks in the employment behavior of each airline.
Getting it done
First, how do we find the total change in number of employees for this month compared to the last? Well, we take the number of employees in the...