Solved

How can I identify all non distinct values in a SSRS report?

Posted on 2009-05-12
4
441 Views
Last Modified: 2012-06-22
I am trying to identify all non distinct customer id's in a SSRS report by changing the back ground color. The code below only identifies the 1st non unique customer number the first time it is repeated.
=iif(CountDistinct (Fields!custid.Value) <>1,"transparent","RED")

Open in new window

0
Comment
Question by:LP_Tech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 9

Expert Comment

by:Hwkranger
ID: 24368547
Check the scope of what you're doing.  Are the customers in the same scope that you're doing the count distinct in?
0
 

Author Comment

by:LP_Tech
ID: 24368627
There are two row groups. Is this part of the problem?
0
 
LVL 26

Accepted Solution

by:
Chris Luttrell earned 500 total points
ID: 24371876
CountDistinct is going to Count the Distinct values of All your custid values in the default scope you are in, inner most grouping.  See technet article for how it works, http://technet.microsoft.com/en-us/library/ms155923.aspx.  If you are grouping by custid then this will work as you can use that grouping scope to do the count, but it will not work in just a normal list or table without the group.
0
 

Author Comment

by:LP_Tech
ID: 24374682
In this case Group one is Product, Group two is Sales Person and then I have my custid field is there any way to identify the duplicate custid's by changing the background color?
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 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