Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
americanetsMD
Contributor III
Contributor III

Flag the accounts that do not match

Hi everyone,

i have got the following situation.

Tab:

System | Kreditor | Partner | PartnerNr

  A          |     790        |     3          |    520

  B          |     790        |     3          |    520

  C          |     790        |     3          |    520

  A          |     800        |                 |    635

  B          |     800        |                 |    635

  C          |     800        |     5          |    635

 

I need to create a flag that will help see those accounts where Partner is same in all System. End result should look like this:

System | Kreditor | Partner | PartnerNr  |   Match

  A          |     790        |     3          |    520            |    Match

  B          |     790        |     3          |    520            |    Match

  C          |     790        |     3          |    520            |    Match

  A          |     800        |                 |    635            |    NoMatch

  B          |     800        |                 |    635            |    NoMatch

  C          |     800        |     5          |    635            |    NoMatch

 

Could anyone please help me find a way to code this

Labels (5)
2 Solutions

Accepted Solutions
Chanty4u
MVP
MVP

try to create this filed in the script 

If(Aggr(Count(DISTINCT Partner), Kreditor, PartnerNr) = 1, 'Match', 'NoMatch') as Match

View solution in original post

americanetsMD
Contributor III
Contributor III
Author

TEMP:
NoConcatenate
Load Kreditor,
If(Count(DISTINCT Partner) = 1, 'Match', 'NoMatch') as MatchField
Resident FinalTab
Group by Kreditor;

So this code in script has worked. 🙂

View solution in original post

6 Replies
Albarosæ
Contributor III
Contributor III

Hello,

This worked for me but I am not sure ( a bit sketchy )

 

Aggr(If(Only(Partner)<>''and Only(Partner)=(Sum(Total <Kreditor> Partner)/Count(total <Kreditor> System)),'Match','NoMatch'),Kreditor,System,PartnerNr)

 

 

Chanty4u
MVP
MVP

try this

=If( Aggr(Count(DISTINCT Partner), Partner) = 1, 'Match', 'NoMatch' )

Albarosæ
Contributor III
Contributor III

It doesnt work I think, chanty4u. You can see the image below.

Albaros_0-1697019306452.png

 

Chanty4u
MVP
MVP

try to create this filed in the script 

If(Aggr(Count(DISTINCT Partner), Kreditor, PartnerNr) = 1, 'Match', 'NoMatch') as Match

americanetsMD
Contributor III
Contributor III
Author

TEMP:
NoConcatenate
Load Kreditor,
If(Count(DISTINCT Partner) = 1, 'Match', 'NoMatch') as MatchField
Resident FinalTab
Group by Kreditor;

So this code in script has worked. 🙂

americanetsMD
Contributor III
Contributor III
Author

Thank you all for your support. 🙂