Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I'm using the following code for the master calendar. It had worked with no problem with other data sets, but I get the following error message, when I try to use it with a particular data table (Alabama_employ).
I hope someone would be able to help me.
Thank you,
Jessica
Error message when I try to load:
Here is the master calendar code I'm using:
Here is the table I'm referencing:
What you have below should have worked and should show your Jan2010 for year = 2010 and Month = 01
MakeDate function create a date and you don't need Date#() for Qlik Sense to understand that it is a date. Try this:
Date(MakeDate(year, Right(period, 2)), 'M/D/YYYY') as DATE,
to replace this
Great, thank you. However, I still get the following error message - I think it's on the master calendar side.
Can you share how year and Period look in there raw formats?
Year = 1990, 1991, etc
Period = M01, M02, etc.
Try this out:
Date(MakeDate(year, (Right(period, 2) * 1)), 'M/D/YYYY') as DATE,
or
Date(MakeDate(year, Num#(Right(period, 2), '##')), 'M/D/YYYY') as DATE,
I get the same error message.
Can you just run your Alabama_employee table with all of these
Num(MakeDate(year, (Right(period, 2) * 1))) as DATE1,
Num(MakeDate(year, Num#(Right(period, 2), '##'))) as DATE2
Yes, it loads correctly. The problem is the master calendar step.
Change this part, encapsulate in brackets
Autogenerate 1 while ($(varMinDate) + Iterno() - 1) <= $(varMaxDate);