Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
QlikView has an intelligent algorithm to recognize dates independently of which region you are in. In most cases, you will have no problems loading them. It just works and you do not need to think about it. However, in some cases dates are not properly recognized and then you need to add some code in the script to make it work.
VERY useful document!
Glad you like it. This text has however been re-written slightly since I posted it. You can find the latest version on
HIC
hi,
Can anyone please tell me about ,what is inyeartodate funcion with example
Regards
Ramesh
Excelent article you sabe me a lot of time
@rameshmca
let's assume we have a variable that has:
vDate = 1-feb-2013
and a table with sales in 2012 up to september 2013, with TransactionDate as the field containing the date of the transaction
inyeartodate(vDate,TransactionDate,0) will return you true(), aka -1 for all the lines with TransactionDate<=vDate and TransactionDate>=yearstart(vDate)
=> you can get sales from the begining of the year until vDate with a formula like this:
sum(-inyeartodate(vDate,TransactionDate,0) * Sales)
Thanks Henric., once again.
I save all your documents and tips anywhere in my private QV Knowledge Base. (QVKB)