on 12-03-2008 8:19 AM
Hi Experts,
In one repeated source segment according to the field values I have to do the count and assign to the target field.
if ( (NAME != "SR") or (NAME == "NV")) // for this case count the segment
{
Target value = count(Repeated Segment);
}
else
{
if ( NAME =="SR") // keep constant value
{
Target value = 1;
}
How to do this mapping in XI?
Regards
Sara
Hi
You can use standard Count function with If condition(Use Constant).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Sara,
Use like this
SourceField------RemoveContext------Sort------SplitbyValue(Change)----->Count---->TargetField
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If it is the count that you want (0,1,2,3...) then in addition to the if statement you can use the counter function available in MM.
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.