I'm working with a pre-existing SSRS report that has a nested sub report.
The nested sub report doesn't always return data. (and this is correct). If the data set is empty nothing comes through no report or column headers no values of any kind no logos. Nothing. However, that is not what we want. If the data set is empty the report should return the headers/logo's and column headings with a string that states there is no data for this data range.
There are no filters/visibility settings preventing it from coming through. Please advise.
3条答案
按热度按时间pb3s4cty1#
You can insert a "dummy" record if there's no data. Say your current query is:
You can check for values and return a dummy record like:
rsl1atfo2#
Check for
Row Exists
Add a condition for your result Table from SSRS report
Tablix Properties > Visibility > Show or Hide Based on Condition
Add a
TextBox
with text'No records found'
and add a condition to show based on your Dataset result.hi3rlvi23#
Had that happen also with a Sub-Sub-Report. Once there are 0 Lines in the Dataset, the whole Sub-Sub-Report is not rendered. I love SSRS for those easy to find errors... I've just added the following to the original query