Skip to main content
Announcements
Get Ready. A New Qlik Learning Experience is Coming February 17! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Fact Generation in Load script

Hi Team,

I am new to the Qlikview. I have a requirement on the data model. I received below Raw data file from the business in the excel format.

I have to create dimensions and facts from this and load the data every day.

RAW DATA : Received from business
Employee IDEmployee NameCityDate of Joining
1AlexUSA2014
2DomUK2015
3ShaunUSA2011
4DaleAustralia2012
5BillIndia2013
6CathyJapan2014

I have come up with the dimensions and facts as follows

  

City Dimension
City KeyCity Name
1USA
2UK
3USA
4India
5Japan
6Australia

  

Year Dimension
Year KeyYear
12010
22011
32012
42013
52014
62015
72016

Employee Dimension
EmpKeyEmployeeIDEmployee Name
11Alex
22Dom
33Shaun
44Dale
55Bill
66Cathy

My Question is how to create fact table as shown below in the script. Could you please let me know how to create a script to populate below fact table by using above dimension table. Thanks in advance.

Fact Table

    

Fact keyEmpKeyCityKeyYearkey
1115
2226
3312
4463
5544
6655

   x`

1 Reply
marcus_sommer

You don't need to do this. In this case you could simply load the rawdata and it will work greatly then in qlikview you don't need things like to normalize the data - you will need to do rather exact the opposite.

- Marcus