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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Vamsy1991
Contributor
Contributor

How to write the condition for to separate and create Q1-2020 from Submissions of Q1 2020 using subfield

Please help on to separate and create Q1 - 2020 from Submissions of Q1 2020 using subfield

Field name = Quarter

Quarter =Submissions of Q1 2020,Submissions of Q2 2020,Submissions of Q3 2020

Requirement =Q1 - 2020,Q2 - 2020,Q3 - 2020

 

Labels (1)
4 Replies
Chanty4u
MVP
MVP

load *,
subfield(Quarter, ' ', -2) & '- ' & subfield(Quarter, ' ', -1) as NewQuarter;
load * Inline[
Quarter
Submissions of Q1 2020,
Submissions of Q2 2020,
Submissions of Q3 2020
];

exit SCRIPT;

quarter.PNG

MayilVahanan

Hi @Vamsy1991 

One more solution,

Replace(Right('Submissions of Q1 2020', 7), ' ','-') <--- Q1-2020

Load Replace(Right(Quarter, 7), ' ','-') as Quarter from ursource;

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

Thank you Chanty,

Vamsy1991
Contributor
Contributor
Author

Thank you Mayilvahanan,