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

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

COUNTING WITH MONTHS

Hi All

if Shipdate = 15-01-2013

and I want as result to the monthnumber of the month before

so for the mentioned the result should be 12.

What expression should I use to get this result. 

ps.

Num(Date(Shipdate)) wil not work for January as the result is 0

1 Solution

Accepted Solutions
MayilVahanan

HI

Try like this

=Num(Month(AddMonths( Shipdate ,-1)))

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

HI

Try like this

=Num(Month(AddMonths( Shipdate ,-1)))

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Works THANXX

Van: Mayil+Vahanan Ramasamy

Verzonden: vrijdag 23 augustus 2013 9:42

Aan: Marc van+Eijk

Onderwerp: Re: - COUNTING WITH MONTHS

<http://community.qlik.com/> QlikCommunity

COUNTING WITH MONTHS

reply from Mayil+Vahanan Ramasamy <http://community.qlik.com/people/MayilVahanan?et=watches.email.thread> in New to QlikView - View the full discussion <http://community.qlik.com/message/381550?et=watches.email.thread#381550>