Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

seeing duplicates across two fields

I have three fields supporter number, last name and postcode. What I am trying to do is to put a condition on the background colour of supporter number to say if the postcode and last name combination appears twice i want the supporter number to be coloured.

I understand where to put this condition but I cannot work out what condition to use

thanks in advance

Rosie

22 Replies
Miguel_Angel_Baeyens

Hello Rosie,

You may use in the color expression something like

=If(Count(PostCode & LastName) = 2, RGB(200, 200, 200))


where the "&" operator concatenates PostCode value to LastName value.

Hope that helps

Not applicable
Author

Thanks Miguel

But unfortunately that is not working!

Any more help would be greatly appreciated

Miguel_Angel_Baeyens

Hello Rosie,

What fields do you want to look for? Are they already in the table?

Not applicable
Author

I have a straight table of Supporter Number as the dimension and [Postcode] and [Last Name] as expressions, I want to know if there are any repetaed postcode and last name combinations and if there is colour the supporter number a different colour

Thanks

Rosie

Not applicable
Author

Hi,

Sort the table with [Postcode] and [Lastname] in ascending order and try the following expression:

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

=if([Postcode]=peek([Postcode],-1),if([Lastname]=peek([Lastname],-1),rgb(100,100,100)))



hope this one works.

Cheers,

Haneesh

Not applicable
Author

Sorry Haneesh this is not working either

any other suggestions?

Thanks

Rosie

Not applicable
Author

Hi Rosie,

Can you attach your document with some sample data. I will try to update the expression to get the desired result.

-Haneesh

Not applicable
Author

this is my document using just a sample

Not applicable
Author

data