Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Month to Present and Year to Present Report

$
0
0

hi,

i have a fields in my report like storeid,storename,country,city,time and total. so i want to add 2 more total columns in the report which display the total of month  like suppose if todays date is 31st of october 2014 i should get the sum of 1st october 2014  to 31st october 2014(Total field) and one more column total of the year it should get the sum of 1st january 2014 to present which is 31st of october 2014(total field)

below is the query which i am using in report

select storeid,storename,country,city,time,total from stores where time=@Timepara


sal



Viewing all articles
Browse latest Browse all 10045

Trending Articles