
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MonthName(AddMonths...)
Hello,
I have a problem with addmonth.
i write =monthname(AddMonths(AnnéeMois,-1)) but it's not working.
any help please
- « Previous Replies
-
- 1
- 2
- Next Replies »

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you say its not working, can you elaborate what the issue is? Does it give you an error, or does it become null? What exactly is the issue?
On another note, have you made sure AnnéeMois is a date field and not text field formatted as date?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If this works than the issues with the date formatting:
=MonthName(AddMonths(today(),-1))
Could you please let us know how your date field looks like and what kind of values do contain?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sunny,
it become null

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My guess is that AnnéeMois is not read as a date. Can you try this:
=MonthName(AddMonths(Date#(AnnéeMois, 'DateFieldFormatHere'), -1))
Where you will replace DateFieldFormatHere with the format that is associated with AnnéeMois

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it's not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Share with us how your AnnéeMois field looks like.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think the problem is qlikview not read AnnéeMois like a date but i dont know how and what i can to do for to change this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AnnéeMois is like Juillet 2015


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hola Sami,
¿Ya probaste con la solución que te indicó Sunny T?
=MonthName(AddMonths(Date#('Jul 2015','MMM YYYY'),-1))
en u caso es reemplazar 'Jul 2015' por AnnéeMois
=MonthName(AddMonths(Date#(AnnéeMois,'MMMM YYYY'),-1))

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