Avatar of nsehmi
nsehmi
Flag for United States of America asked on

SQL SERVER REPORTING SERVICES - How do you show only one distinct field.

In reporting services, I have two rows that give out different IIF statements. One field in Row 1 is a VBScript code and the other column in Row 2 is a IFF statement. When they are run, one shows group changes and the next one shows Termination. However, they are drill downs and  each change shows on every row. In terms for Row 2, it shows it as many times as Row 1 does. I want to show only one Termination field, not how many times Row 1 shows it. The doc attached shows a visual. Thanks
Doc1.doc
DB Reporting Tools

Avatar of undefined
Last Comment
Chris McGuigan

8/22/2022 - Mon
Chris McGuigan

Are both rows in the same group?
Why not make the second row invisible if the status is not "Termination". Look for the "Visibility" property when the row is selected.
nsehmi

ASKER
How do you do that? I created a group for each one of them. I want to only show Termination if there is termination.

The issue at hand is that it is coming up twice. How do i only show it once?

Thanks
Chris McGuigan

If they are individual groups then I would guess that the expression you've used to trigger the second group on is wrong because it's breaking every time the first group breaks.
Can you elaborate on the query you are using and what you field/expression ou are grouping on?


This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
nsehmi

ASKER
Ok there are 3 individual groups. One is change of status, another is Terminated and 3rd is New hire.  I want to figure out a way to trigger Termination Group and New hire Only once PER employee.

Right now when I do a drill down on an employee, It shows the change of status group..If there are more than one change to the employee change of status, it shows 2 of them which is right. the only issue is that the terminated and new hire group follow that as a REPEAT

Correct Way-

Fname LastName   Date          Reason
l            s               1/1/2008    Change of Status
                                                Change of Status
                                                new Hire
                                                Terminated

Right now"

Fname LastName   Date          Reason
l            s               1/1/2008    Change of Status
                                                New Hire
                                                Terminated
                                                Change of Status
                                                New Hire
                                                Terminated
ASKER CERTIFIED SOLUTION
Chris McGuigan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.