Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
bharatkishore
Creator III
Creator III

remove multiple months

Hi All,

I have written the following code to get month in script

Date(Makedate((LEFT(Period,4)),(Right(Period,2)),01),'MMM') as Month

But i am getting repetitive months. like Jan,feb..dec again jan,,feb..dec

Can you please help me how to remove those.

Thanks,

Bharat

1 Reply
vamsee
Specialist
Specialist

Can you provide a sample of your field Period?

Also, try

Month(Makedate((LEFT(Period,4)),(Right(Period,2)),01))

or

Month(Date#(MakeDate((LEFT(Period,4)),(Right(Period,2)),01)))