Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

How to add calculate last year ccolumn per month?

$
0
0

Hi

My query contains three fields:

Year , Month and amount.

I try to add another column to display the amount calculated last year per month

 

I tried this formula, but it returns empty:

first I created a new variable calles "last year" = [year]-1

and then I tried to do : [amount] where([year] = [last year] but it returns empty


Example (in red the column that I want to add)

Is it possible?

YearMonthAmountLast Year Amount
2014110,256
201422,135
2014315,654
201442,165
201451,321
201462,132
201472,156
2014885,682
201495,664
2014102,956
20141164,253
2014126,546
2015154,88710,256
2015284,5642,135
201535,46515,654
2015412,3452,165
201551,2581,321
2015625,5642,132
201571,3212,156
2015884,36485,682
201591,3125,664
20151013,2152,956
20151121,35864,253
2015121356,546
201613,12154,887
201621,32184,564
2016313,2135,465
and so on…



Viewing all articles
Browse latest Browse all 3363

Trending Articles



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