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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ajinkyabhonsle
Contributor III
Contributor III

Convert FiscalYearQuarter to Quarter

Hi Qlik users,

I have a field in my table called FISCALYEARQUARTER with values eg: 2018Q1,2018Q2,2018Q3,2018Q4,2019Q1,2019Q2 etc..

I want to convert this field into Quarters eg: Q1, Q2, Q3.Q4. Can anyone help me how do make the change?

Labels (3)
1 Solution

Accepted Solutions
dwforest
Specialist II
Specialist II

='FY' + Mid(FISCALYEARQUARTER ,3,2)

online help is your friend  --- help.qlik.com

View solution in original post

5 Replies
drunk8gods
Contributor
Contributor

If you're just looking to get the Q1 Q2 etc regardless of year, try using 

=right([field],2)

ajinkyabhonsle
Contributor III
Contributor III
Author

Great!. Thank you so much.  Had another question on similar lines. Hope its ok to post here. With the same FISCALYEARQUARTER i want to create a field called Fiscal Year like FY18, FY19, FY20 etc...How can we do that?

dwforest
Specialist II
Specialist II

='FY' + Mid(FISCALYEARQUARTER ,3,2)

online help is your friend  --- help.qlik.com

DeeC84
Contributor
Contributor

Hi

 

I have the opposite issue, I have FiscalQuarter (Q1,Q2 etc)  and am trying to create FiscalYearQuarter (2019Q1, 2019Q2 etc). Please help! 

 

Dharanidharan_DD
Creator
Creator

Hi @DeeC84 

Try This,

Year(YearEnd([DateField],0,4)) & [FiscalQuarter]