Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
try to create this filed in the script
If(Aggr(Count(DISTINCT Partner), Kreditor, PartnerNr) = 1, 'Match', 'NoMatch') as Match
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. 🙂
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)
try this
=If( Aggr(Count(DISTINCT Partner), Partner) = 1, 'Match', 'NoMatch' )
It doesnt work I think, chanty4u. You can see the image below.
try to create this filed in the script
If(Aggr(Count(DISTINCT Partner), Kreditor, PartnerNr) = 1, 'Match', 'NoMatch') as Match
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. 🙂
Thank you all for your support. 🙂