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

SSRS Reporting - Report takes 16min to render... too many expressions

$
0
0

Hi,

I'm new to this whole SSRS business... and I'm running into two major issues while trying to create my first report...

#1 I know there is a probably better ways to do what I'm trying to accomplish

#2 It takes 16 min to run

----------------------------------------------------------------------------------------------------------------------------------------

Problem: I need to get a count of "cards" that were active/deactivated during a given (user selected) accounting month (broke down by day) - One of my problems is that from the (DataSet1 - which contains must of the info I need) only contains the start and end date of the accounting month ( I don't have a calendar table)

So (From the screenshot) (column 1 "ACM START DT Short" I'm manually adding expressions (29) to get the dates I need..

link to screenshot :

https://drive.google.com/file/d/0B6xIAvBds7UuZ0VFdld1UlV5emc/edit?usp=sharing

Since I only have start and end date I'm using these properties on my first and last row and for the rest I'm using the following expression (increasing the day by 1)

=Fields!CUBD_CareDay_Period_End_DT_SHORT.Value
=DateAdd(DateInterval.Day,1,Fields!CUBD_CareDay_Period_Start_DT_SHORT.Value)
=DateAdd(DateInterval.Day,2,Fields!CUBD_CareDay_Period_Start_DT_SHORT.Value)
=DateAdd(DateInterval.Day,3,Fields!CUBD_CareDay_Period_Start_DT_SHORT.Value)

.
.
.
.
=DateAdd(DateInterval.Day,29,Fields!CUBD_CareDay_Period_Start_DT_SHORT.Value)
=Fields!CUBD_CareDay_Period_End_DT_SHORT.Value

I find this really dumb and I'm sure there are better ways to do this...

Is there a way (for instance) to write some code to do something like (see below) and dump the result (dates) into my first column

  /what I mean with start_date + 1 is to increase the start_date by one day

i=1

If (start_date + i) < end_date
i++

then return start_date+1
else return end_date

is it possible? If so, how? any articles that may help?





Viewing all articles
Browse latest Browse all 10045

Trending Articles



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