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: 
Srinivas
Creator
Creator

Year converstion

Hi all,

I have one question, i have one date filed we need to convert to FY-Year like below way:

above FY list box i have converted based on : ='FY'&- Year(YearName(Year, 1, 7)) , but my question is FY came extra, i no need this one

how to remove this one.

Regards

Munna

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi Srinivas,

I think there are some null values in your Year field, check for that rows, or try below script

LOAD

*,

If(Len(Trim(Year)) > 0, 'FY'&- Year(YearName(Year, 1, 7)))

FROM DataSource;

Regards,

jagan.

View solution in original post

2 Replies
sunny_talwar

May be something like this this:

=If(Len(Trim(Year(DateField))) > 0, 'FY-'& Year(DateField))

jagan
Luminary Alumni
Luminary Alumni

Hi Srinivas,

I think there are some null values in your Year field, check for that rows, or try below script

LOAD

*,

If(Len(Trim(Year)) > 0, 'FY'&- Year(YearName(Year, 1, 7)))

FROM DataSource;

Regards,

jagan.