Solved

SSRS, MSSQL 2008 - hiding/suppressing group header line if no detail

Posted on 2010-11-30
5
1,033 Views
Last Modified: 2012-05-10
Hello,

I have an SRS report that shows customers and the things they bought from us. My report is grouped on Customer and then the detail lines are an item they bought from us (the item number), date, amount, etc. So it would look like this:

Customer Smith
     Item 1     10/22/10    245.00    
     Item 4     11/05/10    500.00
Customer Jones
     Item 20   10/01/10    750.00
     Item 14   09/15/10    800.00
Customer Doe
     etc.

My end users can select a date range when they run this report. If the customer hasn't bought anything within the date range, the line with their name (group header record) is still showing up and I would like to suppress that. I have tried conditionally hiding the row visibility and the group visibility based on a detail field, but that is not working. Any ideas?

Thanks!
0
Comment
Question by:erp1022
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:BostonMA
ID: 34239790
Put an expression on the visiblity of the table which depends on a count or sum of one of your data items.
0
 

Author Comment

by:erp1022
ID: 34240674
Still not working, see attachment.

Also, I had this question on another post, and then closed the question because it wasn't being answered properly. After I closed it, you responded with a fix regarding a filter. I tried the filter but that didn't work either.
Screen-shots.docx
0
 
LVL 4

Expert Comment

by:BostonMA
ID: 34241337
Okay...it wasnt clear from your question that you are using a tablix and not a table so that changes the solution.  

When you look at your dataset is the InvSale_Amount all null?  If so then the sum will not equal zero.  Here are a few options to try

=IsNothing(InvSal_Amount.Value)

=sum(IIF(IsNothing(InvSal_Amount.Value),0,InvSal_Amount.Value))

0
 

Accepted Solution

by:
erp1022 earned 0 total points
ID: 34242982
More specific please. You gave me a couple of options above, but I have no idea where to put them. Is it an expression for group visibility? Row visibility? Or something else?
0
 

Author Closing Comment

by:erp1022
ID: 34358789
Question closed.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSRS UK Map with Postcodes 2 128
SSRS 2008 Multi Value Parameter Filter using OR 3 39
Report Builder 3.0 3 37
Please help| Getting the syntax error in below query. 2 56
Introduction: This article is aimed at report developers who are used to developing reports using relational databases and have gotten a first-time assignment to develop reports on OLAP cubes. It demonstrates how to build a report using SQL Ser…
A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question