Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: belliveaujdOriginally posted by: awilliams1024
Thanks a lot Josh for posting the solution.
One additional point: to simplify configuration of the Pivot Names to Data node you could also have used a wildcard in the PivotFields parameter (with a value of S* in this case)
Great point Adrian! I completely missed that. Here's an update, using a wildcard to pivot on the SH0* and ST0* fields
node:Static_Data
bretype:core::Static Data
editor:sortkey=56aa427712a44c3b
output:@40fe6c55598828e5/=
prop:StaticData=<<EOX
ban, ST0035, ST0037, ST0036, ST0038, SH0039
123456789, -80, -26, -18, -10, -47
987654321,, -50, -26,,
EOX
editor:XY=150,90
end:Static_Data
node:Pivot__Names_To_Data
bretype:core::Pivot - Names To Data
editor:sortkey=56aa43196c556340
input:@4c8fdfd712226f21/=Static_Data.40fe6c55598828e5
output:@4c93bf5c2ec21c56/=
prop:DataOutputField=amt
prop:NameOutputField=promo
prop:PivotFields=SH0*,ST0*
editor:XY=270,90
end:Pivot__Names_To_Data
node:Split_Null_Amounts
bretype:core::Split
editor:Label=Split Null Amounts
editor:sortkey=56aa439517055dab
input:@40fd2c74167f1ca2/=Pivot__Names_To_Data.4c93bf5c2ec21c56
output:@40fd2c7420761db6/=
output:@456df11556bd6bcf/=
prop:PredicateExpr=<<EOX
'amt' != ""
EOX
prop:Script=<<EOX
emit ban, promo, amt
EOX
editor:XY=370,90
end:Split_Null_Amounts