Customer Portal

Question regarding Normalizer

Comments 5

  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    Hi Peter,
    I have attached a sample solution to your data challenge. Worth noting are these component settings:

    • FlatFileReader: Trim Strings = true (to remove redundant space characters);

    • 'input' metadata: when extracting metadata, Extract Names = true (to get the actual metadata field names instead of generic Field[index] names);

    • Reformat: using the split() function to parse the first field containing mixed information;

    • Normalizer: using the getFieldName() function to push the metadata field name as an output record;

    Kind regards,
    Vladi
  • Avatar
    peter.schwarz
    0
    Comment actions Permalink
    Thank you Vladimir, that helps a lot!
  • Avatar
    andras.csore
    0
    Comment actions Permalink
    Hello Gents,

    I like to add 'another' way of solution with Rollup component.
    * in Clover is pretty usual to archive the goal in many ways.
    Vladi solution (what is just simple and perfect) also in the attached Graph, i add SimpleCopy to feed the additional Rollup component.
    Note: Rollup a little bit more complex component than Normalizer, but i think in this case may a nice introduction the Rollup also.

    I also add additional input file for demo, where 5 Week exist.
    The code itself works any column amount => its get the field count in length($in.0) part. And i expect, the 'Weeks' start in the 2nd 'column/field' in the data.

    Regards: Andras,
    Forum member
  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    Hi Andras,
    thank you for the elaborated example. We really appreaciate your contribution to this topic, especially because of the complexity of using RollUp.
    Best regards,
    Vladi
  • Avatar
    andras.csore
    0
    Comment actions Permalink
    Thanks! Actually forum cases helps me to improve my Clover skills :)
    Regards: Andras,

Please sign in to leave a comment.