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

calculate previous year column in Rolling 12 months query

$
0
0

Hi experts,

 

 

 

 

I have a rolling 12 months query with the following things


In Rows
structure with calmonth year restriction values so that first row is current cal month, 2nd is (current calmonth - 1offset) so on.

In columns
Gross profit(Curr Year) gr0ss profit(Prev Year) Net profit(Curr Year) Net profit(Prev Year)

 

 

Rows                                        Columns
                  Gross profit(CY)       gr0ss profit(PY)       Net profit(CY)       Net profit(PY)
1curmnth        1000                                                        2000
2curmnth-1     2000                                                        4000
3curmnth-2     3000                                                        8000
4
5
6
7
8
9
10
11
12


How to calculate the previous columns in this query without using cell definitions

 

 

 

Thanks & regards,

Mohammed Naveed.


Viewing all articles
Browse latest Browse all 10116

Trending Articles



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