Hello Maneesh,
Here's steps which I will follow to achieve desired result.
- Change format of Quarter from (0012016) to (201601) to be able to anticipate previous quarter
- Create aggregation node and add Salary as aggregated column
- Created calculated column with this formula :-
PreviousQuarter = if( rightstr(Quarter,2) = '01', str( int( leftstr(Quarter,4) )-1 ) + '04', int(Quarter) -1 )
- Create join between PreviousQuarter and Quarter
Hope this helps