Creating a DataBase on Magic ETL

Options

I have a database with a column Area with differents areas, and other column called "Value" and i want to create a new database grouping all theses areas in just one, but keeping the others columns with the info that it was. I want to do these Magic ETL

Best Answer

Answers

  • MichelleH
    MichelleH Coach
    edited December 2022
    Options

    @luizalauretti Can you please provide some anonymized examples of what your data looks like and what you want the result to look like?

    It sounds like what you described should be possible in ETL, but I want to be sure I'm understanding correctly before offering suggestions.

  • luizalauretti
    Options

    This first Database is what i have, you can look that has two areas (IV and V) and i want to group in one area (like the second table - SP) and sum the values, someone suggest me to use the formulas on Magic Etl, but i have no idea how, lol

  • MichelleH
    Options

    @luizalauretti You should be able to create the second table using a Group By tile in MagicETL that groups by PPG, RE, and TYPE then takes the Sum of VALUE. Then you can use an Add Constants tile to create a new AREA column with a value of "SP".

  • luizalauretti
    Options

    Thanks @MichelleH,

    it would be like this? (the Group By)

  • MichelleH
    Options

    @luizalauretti Yes, exactly!

  • luizalauretti
    Options

    Thanks @MichelleH

    I just dont know how to to the "add constants" tile

    what i shoul pick up? and then the 'Area' it would be the constant ?

  • MichelleH
    MichelleH Coach
    Answer ✓
    Options

    @luizalauretti You would want Area to be stored as Text with a value of SP.

  • luizalauretti
    Options

    Thank you for the help, @MichelleH ! I did it :)