Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Contributor II

Date Issue


I have a date field and i just want to month of the date but my problem is that my Apr month started by 25-03 to 26-04 how can i convert it

i am uploading a qvw.

5 Replies
Not applicable

Re: Date Issue


I don't really understand the problem. Why should April start on 25th of March? But I observed in your example that your data may not be recognised as date, which might cause trouble. Your date format is set to

       SET DateFormat = 'M/D/YYYY';

but your listbox shows DD-MM-YYYY format. This indicates that your data are imported as text only.

You haven't uploaded the source data (Excel), but I assume that you must check the date format in Excel, define the same format (SET DateFormat = ...) in your QV application and the import will work. If you must convert the input, use functions like Date(), Left(), Right() and Mid().

This is not a complete solution, but I hope the idea contributes to find the cause for your problem.



Contributor II

Re: Date Issue

hi sebablum.

thanks for reply but my question is that my every month started from 26 to 25

eg Apr - 26-03-2011 to 25-04-2011 and may - 26-04-2011 to 25-05-2011

Not applicable

Re: Date Issue

Try something like


Valued Contributor III

Re: Date Issue

Hi vipin,

Please try this one and reply me is it fine or not.



Not applicable

Re: Date Issue

Sorry for the late reply. Your description gives me another simple idea: What about generating a calendar with date as key field and adding a field like "ReportMonth" into the calendar? Then you could read your month directly from there, i.e. you have both the reporting month and the month of the date as fields in your data model.



Community Browser