Question: I have 14 months of Data as ( 2017{Jan-Dec} , 2018{Jan,Feb} ). I want to show the year based on the condition that "If that particular year(x) has more than 6 months of data then if should show that particular years(x) data else the previous year(y)."