Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Not applicable

Index keys.

Here is my load statement. I want to normalize the data with a primary index key. 


Load AccountNumber,

AccountNamr

FiscalYearStartDate

BillStartDate

from

account.qvd;


From there I want to show:


AccountNumber 1

AccountName - XYZ

BillStartDate - 1/1/2013

FiscalYearStartDate - 7/1/2012

Month(FiscalYearStartDate) as Month - 7

Month Index 1 since 7/1/2012 is the FiscalYearStartDate


AccountNumber 2

AccountName - ABC

BillStartDate - 2/1/2013

FiscalYearStartDate - 8/1/2012

Month(FiscalYearStartDate) as Month - 8

Month Index 1 since 8/1/2012 is the FiscalYearStartDate


Does this make since?  Can this be done.


David

2 Replies

Re: Index keys.

If I'm following correctly, you can add:

1 as [Month Index]

or am I misunderstanding?

-Rob

Not applicable

Re: Index keys.

as my understood

date(BillStartDate,'MM') as [Month Index]

correct ?????

Community Browser