Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Sum of Amount

$
0
0

Hi

 I have data like below . I want if user has entered month = 2 and year = 2016 then it should show sum from Month = 4 , Year = 2015 to Month = 2 , Year = 2016 i.e 10210000.

If user has entered month = 9 and year = 2015 then it should show sum from Month = 4 , Year = 2015 to Month = 9 , Year = 2015 i.e 3990000.

LocationMonthYearAmount
DSL42015530000
DSL52015530000
DSL62015530000
DSL72015800000
DSL82015800000
DSL92015800000
DSL1020151300000
DSL1120151300000
DSL1220151300000
DSL120161160000
DSL220161160000
DSl320161160000

Viewing all articles
Browse latest Browse all 1418

Trending Articles