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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Chanty4u
MVP
MVP

Double As

Hi all,

When i load below script it is givng error as   Filed not found  <Date>

how to over come dis?

Sample:

LOAD F1 as [s.no],

     F2 as [Sales Executive],

     F3 as [TopLine Achieved],

     F4 as [Gross Margin Achieved] ,

     F5 as [Top Line Target] ,

     F6 as GMTarget,

     F7 as Product,

     F8 as BranchHead,

     F9 as  Branch,

     F10 as Dept ,

     F11  as Date

    

    

//           Year(Date) as Year,

//     Month(Date) as Month,

//     Day(Date) as Day,

//     Week(Date) as Week,

//    'Q' & ceil(Num(Month(Date))/3) as Quater,

//     applyMap('FiscalQuarterMap', num(month(Date)),null()) AS FiscalQuarter

from[...];

24 Replies
PrashantSangle

Hi,

Yes, That could be possible error if those field not commented in his original post.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Chanty4u
MVP
MVP
Author

same kush.... its nt givng the values in the field

calend.PNG

PrashantSangle

Hi,

try with date#()

like

month(date#(dateField,'DD-MMM-yy')) as Month

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Kushal_Chawda

Your dates are in string format use Date#

Sample:

LOAD  *,

           Year(date#(Date,'DD-MMM-YY')) as Year,

     Month(date#(Date,'DD-MMM-YY')) as Month,

    Day(date#(Date,'DD-MMM-YY')) as Day,

    Week(date#(Date,'DD-MMM-YY')) as Week,

    'Q' & ceil(Num(Month(date#(Date,'DD-MMM-YY')))/3) as Quater,

     applyMap('FiscalQuarterMap', num(month(Date)),null()) AS FiscalQuarter;

LOAD F1 as [s.no],

     F2 as [Sales Executive],

     F3 as [TopLine Achieved],

     F4 as [Gross Margin Achieved] ,

     F5 as [Top Line Target] ,

     F6 as GMTarget,

     F7 as Product,

     F8 as BranchHead,

     F9 as  Branch,

     F10 as Dept ,

     F11  as Date

from[...];

Anonymous
Not applicable

Hi Chanty,

This is because your format on your original table is not on Date format. Could you share one example of your data?

Thanks

Anonymous
Not applicable

Hi Chanty,

Try kushal chawda solution. On Applymap apply the Date# expression too.

Regards!

Chanty4u
MVP
MVP
Author

yes its givng correct now...but Quarter value shwng as only   "Q"

instead of Q1 and Q2 Q3 Q4...?

Chanty4u
MVP
MVP
Author

evrythng is wrkng except  fiscal quarterfidscal.PNG

PrashantSangle

Hi,

try

'Q' & ceil(Month(date#(Date,'DD-MMM-YY'))/3) as Quater


Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
tamilarasu
Champion
Champion

Should be this,

applyMap('FiscalQuarterMap', num(month(Date#(Date,'DD-MMM-YYYY'))),null()) AS FiscalQuarter;