Вы находитесь на странице: 1из 1

Validating the Model

Data validation tables


To ensure youve loaded the data correctly:
Load static comparison data as a separate table that
links to your data model
Create a data validation table on an analysis sheet
with the data model values, in this example
Sum(UnitCost), alongside the static comparison data,
Sum(OrigUnitCost)
Add a column to your validation table that shows the
variance as Column(1)-Column(2) and sort by the
variance column to help spot discrepancies

Using counter fields

Employees:
LOAD EmployeeID,
Employees: BuildingID,
LOAD EmployeeID, BuildingID AS BuildCounter,
BuildingID, 1 AS EmployeeFlag,
BuildingID AS BuildCounter IF(Gender='Male', 1, 0)
AS MalesFlag,
IF(Gender='Female', 1, 0)
Number of buildings:
COUNT(BuildingID) 900 AS FemalesFlag,
COUNT(DISTINCT BuildingID) 20
Number of employees: Males:SUM(MalesFlag) 420
Number of buildings with employees:
COUNT(DISTINCT BuildCounter) 18 SUM(EmployeeFlag) 900 Females:SUM(FemalesFlag) 480

2016 QlikTech International AB. All rights reserved. Qlik, Qlik Sense, QlikView, QlikTech, Qlik Cloud, Qlik DataMarket, Qlik Analytics Platform and the Qlik logos are trademarks of QlikTech International AB which
have been registered in multiple countries. Other marks and logos mentioned herein are trademarks or registered trademarks of their respective owners. Use of any and all of the foregoing is subject to the written approval of Qlik.

Вам также может понравиться