Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to customize a selection list in relation to an academic year??

Hi, in my database I have years and months and I would create a list of selections per academic year

for example in my database i have 2012, 2013, 2014 and i would sort from October 2012 to September 2013 and from October 2013 to September 2014 and my list will display 2012/2013, 2013/2014.

how i can do it? thx

5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Create a couple of extra fields for academic year and month. See this blog post: Fiscal Year.


talk is cheap, supply exceeds demand
aveeeeeee7en
Specialist III
Specialist III

Hi Neil

See the Attachment.

Not applicable
Author

Hi, thank you but i have another problem !

I followed this tuto but this script takes only the data of the first (*.xslx) file.

Can you help me please?

This is my script:

" Set vFM = 10 ;

Load Dual(fYear-1 &'/'& fYear, fYear) as FYear,          // Dual academic year

         Dual(Month, fMonth)                as FMonth,           // Dual academic month

          *;

Load Year + If(Month>=$(vFM), 1, 0) as fYear,           // Numeric academic year

         Mod(Month-$(vFM), 12)+1        as fMonth,

Load Year([Date 1er contact])                              as Year,           // Your standard master calendar

         Month([Date 1er contact])                            as Month,

         FileName() as FileName,

     *,

     *,

     [Date 1er contact],

     *,

     *,

     *,

FROM C:\Prospects\Prospects_*.xlsx

(ooxml, embedded labels); "

Not applicable
Author

Hi,

Please can you send me a script? I have QlikView Personal Edition. i can't open this document.

Thank you.

Anonymous
Not applicable
Author

Hello.

Here is a clean up of the code. Hope it works.

Set vFM = 10 ;

Prospects:

Load

  Dual(fYear-1 &'/'& fYear, fYear) as FYear, // Dual academic year

  Dual(Month, fMonth)              as FMonth, // Dual academic month

  *;

Load

  Year + If(Month>=$(vFM), 1, 0) as fYear, // Numeric academic year

  Mod(Month-$(vFM), 12)+1        as fMonth, // Numeric academic month

  *;

Load

  *,

  Year([Date 1er contact])  as Year, // Your standard master year

  Month([Date 1er contact]) as Month // Your standard master month

From C:\Prospects\Prospects_*.xlsx

(ooxml, embedded labels);