
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Date Format
Hello Everyone,
I have an issue which I know is very easy to solve, there's just something I am not quite getting right.
I have a Filter Pane which filters the dimension date. The date is showing up in the Qlik Sense formate, i.e 42370, 42401 etc.
I would like this date to be displayed in the DD MMMM YYYY format.
I have tried to do so in using the following expression: Date#([Date][, 'DD MMMM YYYY']) (Date is the name of the field containing dates). However, there's an error in my expression.
Please can someone tell me what I am doing wrong?
Thank you all in advance,
Alison
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Aliso,
try
Date(Date,'DD MMMM YYYY')
Regards,
Antonio

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Antonio,
Thank you for your response.
I have tried your suggestion. When I enter it, the script has no error but when it is applied there are no longer any values found in the filter pane.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For formatting, you just need a date function and date#()... date#() is used for interpretation (i.e. when QlikView is having a difficult time understanding that you date field is a date field. So in your case, you already have a date (in the shape of a number), so you need to use Date() function.
Also, the format doesn't have to be surrounded by square brackets
Date([Date], 'DD MMMM YYYY')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be try this
Date(Num#(Date), 'DD MMMM YYYY')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sunny,
Thank you.
I am aware of all that. And yet, I am still having difficulty. As I said above in my response to Antonio, after applying that script I am left without any values in the filter pane. Why is that?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Try this ways
Ex:-
LOAD *, Date(NewNUM , 'DD MMMM YYYY') as NewDate;
LOAD *, Date(NumDate) as NewNUM;
LOAD * Inline
[
NumDate
42370
42401
];
See attached
Regards
Anand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you using this expression in the dimension be clear you can use this on the dimension
Ex:-
Date ( [Date], 'DD MMMM YYYY' )
Date( YourdateFieldHere, 'DD MMMM YYYY')
Be clear on the field name and date syntax.
Regards
Anand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Anand,
Thank you for your response.
That does work, but it seems a little over-complex and it would require quite a lot of time, inputting the dates manually into the data load editor. Is there no solution that less taxing?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try this?
Date(Num#(Date), 'DD MMMM YYYY')

- « Previous Replies
-
- 1
- 2
- Next Replies »