SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Hide Duplicate rows


Hide Duplicate rows

Author
Message
DEEPAK VODETHELA
DEEPAK VODETHELA
SSC Veteran
SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)

Group: General Forum Members
Points: 215 Visits: 39

I am creating a report based on a group value and hiding the duplicate values by clicking the hide property on the selected textbox. The report values are displayed in two rows. If in the same group there is a same record then I am not displaying it.

Which works fine,but it is leaving a blank row all over the report. Please guide me as to how do I avoid the blank row if I am hiding duplicate values on a row.

example:

1 joeph test 111 222 red

sample done works

2

joseph test works

If in the same group, if the 1st line repeats for the 2nd row then there is a blank row after hiding duplicates. I want to remove that blank row if row repeats for each group


Site Owners
Site Owners
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: Administrators
Points: 12677 Visits: 20
No one has responded to this topic yet. Even if you don't have a complete answer, the original poster will appreciate any thoughts you have!
Chuck Snyder
Chuck Snyder
SSC-Enthusiastic
SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)

Group: General Forum Members
Points: 150 Visits: 36

How about stripping out the duplicate entries before they ever get to Report Writer. If using sql, could you use the distinct option???


Neil Rankin
Neil Rankin
SSC-Enthusiastic
SSC-Enthusiastic (132 reputation)SSC-Enthusiastic (132 reputation)SSC-Enthusiastic (132 reputation)SSC-Enthusiastic (132 reputation)SSC-Enthusiastic (132 reputation)SSC-Enthusiastic (132 reputation)SSC-Enthusiastic (132 reputation)SSC-Enthusiastic (132 reputation)

Group: General Forum Members
Points: 132 Visits: 19
Probably a silly question, but you dont have a group header and/or a group footer line, do you?
DEEPAK VODETHELA
DEEPAK VODETHELA
SSC Veteran
SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)SSC Veteran (215 reputation)

Group: General Forum Members
Points: 215 Visits: 39

It is not a silly question mr. Neil. If you have a answer please send it accross. I have a Header and a Footer and its on a legal paper. I am bifurcating my report values based on a group values. In a group I may have more than 1 row. I am displaying single record values in two rows,first row displays only description and 2nd row has all calculated values.

In a group if there two records with same description then I do not have to show same described values for the second record. For that I am hiding based on grouped values. Its working fine, but its leaving me a blank row(remember I told you I am displaying 1 record in 2 rows.).

I do not want to display that blank row. Please suggest.


Asif Sayed
Asif Sayed
SSC Veteran
SSC Veteran (224 reputation)SSC Veteran (224 reputation)SSC Veteran (224 reputation)SSC Veteran (224 reputation)SSC Veteran (224 reputation)SSC Veteran (224 reputation)SSC Veteran (224 reputation)SSC Veteran (224 reputation)

Group: General Forum Members
Points: 224 Visits: 3

Hi,

Usually, if you want to hide the entire detail row then best is to make sure all columns (field) in detail band must be set to hide duplicate row. Also make sure to select the group (especially in case of multiple groups) while setting hide option on.

The other option could be is to eliminate the duplicates well at SQL data binding level.

Hope this helps.

Asif


jayashree.bhogle
jayashree.bhogle
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 14
Have you got solution to this problem? I am facing same issue. Someone please help.
sohan.fegade
sohan.fegade
SSCrazy
SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)SSCrazy (2.6K reputation)

Group: General Forum Members
Points: 2636 Visits: 155
There is an option "Row Visibility" in SSRS, through which you can control the table row visibility. You can use the same expression to control that row visibility which causing you a problem.
THE-LIP
THE-LIP
SSC-Enthusiastic
SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)SSC-Enthusiastic (117 reputation)

Group: General Forum Members
Points: 117 Visits: 30
Hi,

The expression which is used to hide duplicate values, used that exp in Row visibility property.

= IIF([........Expression.....],True,False)
jayashree.bhogle
jayashree.bhogle
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 14
Hello All,

Thanks for your immediate reply. I got the issue solved by using row visibility expression.
Thanks again for your support.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search