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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Financial Year Doubt

Hi All,

I have Month Year like(Apr-14).

Date filed name is 'Item'

I used this

Date(yearstart(Item,0,4),'YYYY') as FIN_YEAR,

    if(num(month(Item))<4,num(Month(Item))+9,num(Month(Item))-3) as FIN_MONTH_NUM,

    'Q'&Ceil(if(num(month(Item))<4,num(Month(Item))+9,num(Month(Item))-3)/3) as FIN_QTR,

     Month(Item) as FIN_MONTH,

     Date(Item, 'MMM-YYYY') as FinancialYear,

I want the Fiscal Year as Apr11-Mar12, Apr12-Mar13, Apr13-Mar14 year wise

How to do this please help me?

Thanks in advance

Labels (1)
3 Replies
PrashantSangle


Hi,

Use YearName()

like YearName(Item,0,4) as FinancialYear

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jagan
Partner - Champion III
Partner - Champion III

Hi Sandeep,

Try like this

LOAD

*,

Date(YearStart(Item,0,4), 'MMMYY')  & '-' & Date(YearEnd(Item,0,4), 'MMMYY')  AS FIN_YEAR

FROM DataSource;

Regards,

Jagan.

PrashantSangle

Hi,

Try this also,

MonthName(YearName(Item(),0,4))&'-'&MonthName(YearName(Item(),1,3))

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂