Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2800

Re: Calculation View: Calculations on different rows

$
0
0

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

 

Capture1.PNG

 

Hope this helps


Viewing all articles
Browse latest Browse all 2800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>