Transformer logic: How to mark a record within a group once?
Posted: Mon Apr 30, 2018 2:31 am
Hi folks,
I might have a simple question regarding transformer logic. My challenge is to determine if an error within a group occured once. If the first data in a group represents an error (marked as 1) for the first time, then the counter (AmountOfWrongGroup) should be set to 1 for the record. But if there are following erros within the group it should be set to 0.
For example:
Group-ID --- Error --- AmountOfWrongGroup
A 0 0
A 1 1
A 1 0
B 1 1
B 0 0
C 0 0
C 0 0
I tried by working with stage variables and building a search string per group, but I didn't get it work correctly![Sad :(](./images/smilies/icon_sad.gif)
Do you have a clue? Thanks a lot!
I might have a simple question regarding transformer logic. My challenge is to determine if an error within a group occured once. If the first data in a group represents an error (marked as 1) for the first time, then the counter (AmountOfWrongGroup) should be set to 1 for the record. But if there are following erros within the group it should be set to 0.
For example:
Group-ID --- Error --- AmountOfWrongGroup
A 0 0
A 1 1
A 1 0
B 1 1
B 0 0
C 0 0
C 0 0
I tried by working with stage variables and building a search string per group, but I didn't get it work correctly
![Sad :(](./images/smilies/icon_sad.gif)
Do you have a clue? Thanks a lot!