No data available for the selected parameters

Who is online?  0 guests and 0 members
Home  »  Blogs  »  ChrisAlbrektson  »  No data available for the selected parameters
 
0
/5
Avg: 0/5: (0 votes)

Comments (6)

Daniel
Daniel said:

Chris, this is great.  I have used something similar many times for the same reason.  There is also a Tablix property called "NoRowsMessage" where you can put an expression that will do pretty much the same thing but without the overhead of adding a column, etc., to your dataset.  One additional advantage of using this property is that you can make it part of a report template so it is done even before you start.

10/6/2010
 · 
 
by
ChrisAlbrektson

Hey Daniel, thanks for the tip.

10/6/2010
 · 
 
by
Daniel
Daniel said:

I submitted the note above a little prematurely.  I forgot to mention that although the NoRowsMessage can be put into your template, and it doesn't require dataset modifications, it is not as flexible in terms of formatting size, position, or color, so it may be a little too understated for some users to notice.

One other note, when using your method (or something similar) I also find it useful to include the parameters in the message because sometimes the parameter was chosen in error and the note helps the user figure that out.

10/6/2010
 · 
 
by
JEBacaniSQLDude

I would suggest sometimes adding the selected parameters to the heading of the report, so that anyone viewing the report will know what combiantion of selected parameters caused the "No data" scenario to occur.  I would even add the execution date, because some data may be time sensitive.  Running a report today for tomorrow's data would of course get no results, since I can see the execution data of today.  But running the report with the same criteria three weeks from now will get values using the same selected parameters, but of course, the execution date is three weeks later.

For execution time:

="Report Generated: "+Globals!ExecutionTime

And for rendering time:

="Render Duration: " +

IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).TotalSeconds < 1, "0 seconds",

(

IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Minutes > 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Minutes & " minute(s), ", "") +

IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Seconds > 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Seconds & " second(s)", ""))

)

Just another two cents!

 

 

10/6/2010
 · 
 
by
ChrisAlbrektson

You can check out this link as well. It has magically appeared after I posted my blog. It’s a little better documented than mine.

 

http://www.bidn.com/articles/ssrs-development/182/where-are-my-records-using-the-norowsmessage-property

10/6/2010
 · 
 
by
JEBacaniSQLDude

Quick note, the Render Time calculation is from briankmcdonald.  Apologies for the lack of credit there.  

 

Execution time, however, is all mine!  Bwahahaha *evil maniacal laughter*

 

Deuces!

10/6/2010
 · 
 
by
Blogs RSS Feed

ChrisAlbrektson's latest blog posts

Blogs RSS Feed

Latest community blog posts