Thank You Manideep Bhattacharyya for your response. This works.
Just a follow up question. Suppose I want to show Quarters, datepart is showing 1,2,3,4 instead of Q1YY, Q2YY and so on. How can we get actual quarter name.
Thank you for your time.
Thank you for your response. It worked perfectly.