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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I create a Financial Year dimension from date?

Hi All,

I'm new to Qlikview & this is my 1st post.

I have a database link set up into my qlikview file, & I want to be able to view the data by Financial Year (Apr-Mar), I can't get any of the previous post replies on similar queries to work on my data.

This is an extract from my script:

QV.bmp

I've tried adding both of the following commands into the script seperately, but neither worked:

qv2.bmp

they bring up an error message saying:

qv3.bmp

Can anyone suggest what i need to do?

Many Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Yearname is a Qlikview function, so you can't use it in sql statements. Use a preceding load:

load *, yearname(date,0,4) as Financial Year;

sql select .... etc;


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Yearname is a Qlikview function, so you can't use it in sql statements. Use a preceding load:

load *, yearname(date,0,4) as Financial Year;

sql select .... etc;


talk is cheap, supply exceeds demand
Not applicable
Author

Thankyou