It saddens me greatly that I'm having to write this post, but here goes...
From time-to-time I receive requests from other websites and authors for permission to reproduce parts of my blog posts. I am normally very flattered that people consider what I write is good enough to reference or reproduce, and until today, I have been more than happy to give approval to such requests. The only thing I have ever asked is that they make it clear what material they have reproduced and to cite the source when doing so.
Unfortunately, I have today come across another blog which has copied images and entire posts word-for-word from QlikViewAddict.com. After taking some legal advice I have sent the owner of the site a copyright infringement notice. This time I am far from flattered!!!
I am also saddened to say that I recognise material from other prominent QlikView blogs too and so if you are the author of a QV blog, please drop me a message so I can send a link to the offending site. I refuse to advertise it here.
For anyone that wants to use any material from this site, unless otherwise stated, I am the sole author and copyright owner of all material published on QlikViewAddict.com and I politely request that you contact me and ask before doing so. You'll find a big "Contact Me" button at the top of every page of the site and I don't bite (well only at the weekends). I receive a lot of messages via this site and I try to reply to as many as I can. Unfortunately, due to having a family and paying customers to keep happy, I don't get to answer them all but I do my best.
Monday, 12 May 2014
Friday, 24 January 2014
QlikView Functions: autonumber()
Having our new baby (AKA the mini QlikView addict) around has meant very little time for anything, let alone blogging. So in order to ensure I at least manage the odd post or 2 I thought it would be good to start a new series of short posts on different qlikview functions and their uses. To kick things off I have decided to take a look at the autonumber() function and the closely related autonumberhash128() and autonumberhash256(). All 3 functions do a very similar thing so let's look at autonumber() first and then consider how the other 2 functions differ.
Autonumber() can be considered a lookup function. It takes a passed expression and looks up the value in a lookup table. If the expression value isn't found then it is added to the table and assigned an integer value which is returned. If the expression value is found then it returns the integer value that is assigned against it. Simply put, autonumber() converts each unique expression value into a unique integer value.
Autonumber() is only useful within the QlikView script and has the following syntax:
Autonumber() is only useful within the QlikView script and has the following syntax:
autonumber(expression [, index])The passed expression can be any string, numeric value or most commonly a field within a loaded table. The passed index is optional and can again be any string or numeric value. For each distinct value within the passed index, QlikView will create a separate lookup table and so the same passed expression values will result in a different returned integer if a different index is specified.
So how exactly are the 3 autonumber functions different? Autonumber() stores the expression value in its lookup table whereas autonumberhash128() stores just the 128bit hash value of the expression value. I'm sure you can guess therefore, autonumberhash256() stores the 256bit hash value expression value.
So how exactly are the 3 autonumber functions different? Autonumber() stores the expression value in its lookup table whereas autonumberhash128() stores just the 128bit hash value of the expression value. I'm sure you can guess therefore, autonumberhash256() stores the 256bit hash value expression value.
Why on earth would I want to use any of these functions? Well the answer is quite simply for efficiency. Key fields between two or more tables in QlikView are most efficient if they contain only consecutive integer values starting from 0. All 3 of the autonumber functions allow you to convert any data value and type into a unique integer value and so using it for key fields allow you to maintain optimum efficiency within your data model.
A final word of warning. All 3 of the autonumber functions have one pitfall, the lookup table(s) exist only whilst the current script execution is active. After the script completes, the lookup table is destroyed and so the same expression value may be assigned different integer values in different script executions. This means that the autonumber functions can't be used for key fields within incremental loads.
Wednesday, 25 December 2013
Merry Christmas
Just a quick post to wish you all a very merry Christmas. I shall be enjoying our first Christmas with our new junior QlikView addict who it seems has been spoilt rotten.
I've been somewhat lax at posting recently but I'll do my best to get back to writing some more. I have a long list of ideas for new posts.
Regards
Matt
I've been somewhat lax at posting recently but I'll do my best to get back to writing some more. I have a long list of ideas for new posts.
Regards
Matt
Tuesday, 12 November 2013
QlikView Notepad++ Language Definition v2.2
I've just released a new version of the QlikView Notepad++ Language Definition, mainly to correct an issue with the function list support not working with the latest release of Notepad++ (version 6.5 onwards). This release also contains the following additional fixes/functionality:
As always, head over to the Notepad++ Language Definition page for the download link and instructions.
Thanks go to Bruno Santos for pointing out the function list issue and testing the fix!
The new version of Notepad++ also has auto-completion turned off by default. You can turn it back on quite easily though:
The options under Auto-Insert are optional and enable auto insertion of
closing brackets and quotes are automatically entered when an opening
bracket or quote is typed.
- Corrected a minor issue with the DISTINCT keyword not being highlighted in some situations.
- Added a check to ensure line comments terminate at an End Of Line (EOL) character.
- Corrected issue with operator identification. Although operators are not highlighted in QlikView, correct identification prevents incorrect highlighting of keywords and functions when an operator buts up against it.
- Added additional operators to fix some minor issues with incorrect highlighting of keywords.
As always, head over to the Notepad++ Language Definition page for the download link and instructions.
Thanks go to Bruno Santos for pointing out the function list issue and testing the fix!
The new version of Notepad++ also has auto-completion turned off by default. You can turn it back on quite easily though:
- Select Settings -> Preferences... from the menu bar.
- Select Auto-Completion from the list on the left and then ensure the options are set as follows:
Monday, 14 October 2013
Half price Packt books until Thursday
The guys and gals over at Packt Publishing are having a half price sale on all ebooks and videos until Thursday 17th October 2013. That means you can grab the great QlikView 11 for Developers and the recently released QlikView for Developers Cookbook as ebooks for 50% off the listed prices.
There are no catches or twists, all you have to do is head on over to the Packt website and enter the discount code COL50 at the checkout. Simples!
There are no catches or twists, all you have to do is head on over to the Packt website and enter the discount code COL50 at the checkout. Simples!
Monday, 8 July 2013
QlikView Notepad++ Language Definition v2.1
Notepad++ version 6.4.1 was released recently and contains some exciting new additions.Top of the list is the new function list which has been awaited for a while now and is a popular feature in many other code editors (including UltraEdit).
This is another significant update and includes:
This is another significant update and includes:
- New function list support allowing Notepad++ to show subroutines, qualify and unqaulify statements, table loads, info loads, mapping loads and store statements all identified within the function list.
- Removed some functions from the auto-complete file as they are only valid in expressions not the script.
- Changed priority of highlighting to fixed issue with some keywords not highlighting correctly
- Fixed some minor issues with keywords being highlighted when they were shown in the wrong positions.
- Added tool tips for some additional functions.
- The if() function cannot be differentiated from the IF...ENDIF statement and thus will be shown as a collapsible block with an incorrect end point.
- Tool tips are not available for all functions. Remaining functions to be added in a future release.
Tuesday, 25 June 2013
QlikView for Developers Cookbook
Stephen Redmond (from the well known QlikTips.com) has been busy writing a sequel to QlikView 11 for Developers which I reviewed a couple of months ago. Unlike it's predecessor, QlikView for Developers Cookbook looks at a serious of "recipes" for solving well known QlikView problems.
Coming from Stephen you can guarantee some advance QlikView content and great advise. I'm eagerly awaiting my copy for review.
You can grab your own copy now from http://www.packtpub.com/qlikview-developers-cookbook/book
Coming from Stephen you can guarantee some advance QlikView content and great advise. I'm eagerly awaiting my copy for review.
You can grab your own copy now from http://www.packtpub.com/qlikview-developers-cookbook/book
Subscribe to:
Posts (Atom)

