Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Trial balance trasformation

Hi all,

 

i would need support to move from this input 

 

 

to this output

 

 

so to recap i need to append the last 3 column to the first 3 (excluding file name that has to appear in all the lines) without including the subtotal amounts

thanks

Luca

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

     

    Here's my solution.

    1.Duplicate a table out, then keep half of the two tables, and unify the column names.

     

    2.Append.

     

     

     

    3.Group by.

     

     

    4.Add custom columns.

     

    5.Expand columns and remove the unneeded columns, then filter rows. Keep the row whose index is 1.

     

    6.Add a custom column to get file name.

     

    Here's the results.

     

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

4 Replies

  • smpa01's avatar
    smpa01
    Icon for Community Champion rankCommunity Champion

    Anonymous  provide sample data and expected output in a table format here.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi smpa01 

      i hope copying as table is fine.

      thanks

      Luca

       

      INPUT

      Acc. IDAcc. DescrDebitAcc. IDAcc. DescrCredit
      0301000CREDITI V/CLIENTI 0601000DEBITI V/FORNITORI 
       CREDITI V/CLIENTI2.180.895,98 DEBITI V/FORNITORI2.466.663,73
      0400000ATTIVITA' A BREVE 0702000DEBITI DIVERSI 
      00405004Erario c/ R.a.i.a.45,1200702003Debiti v/dipendenti91.790,36
      00405010Clienti c/Fatture da emettere144.101,3100702005Debiti v/Ist. Previdenziali (INPS)53.026,03
      00405020Depositi cauzionali2.730,0400702010Ritenute su rivalutazione TFR294,96
       ATTIVITA' A BREVE146.876,4700702024Finanziamento da controllante3.881.609,00
      0401000CASSA 00702025Finanziamento da controllata805.000,00
      00401001Cassa contante11.918,6800702027Debiti per BOLLO VIRTUALE-5.928,00
      00401002Cassa valori bollati521,9300702028Altri Debiti90.000,00
       CASSA12.440,6100702029Cessione del quinto465,00
         00702030DEBITO PER SALDO QUOTE EMO LAB300.000,00
      0402000ERARIO C/IVA  DEBITI DIVERSI5.216.257,35

       

      OUTPUT

      FILE  NAMEACCOUNT DESC.ACCOUNT IDAMOUNT
      PIPPOCREDITI V/CLIENTI03010002180896
      PIPPOErario c/ R.a.i.a.0040500445,12
      PIPPOClienti c/Fatture da emettere00405010144101,31
      PIPPODepositi cauzionali004050202730,04
      PIPPOCassa contante0040100111918,68
      PIPPOCassa valori bollati00401002521,93
      PIPPODEBITI V/FORNITORI06010002466663,7
      PIPPODebiti v/dipendenti0070200391790,36
      PIPPODebiti v/Ist. Previdenziali (INPS)0070200553026,03
      PIPPORitenute su rivalutazione TFR00702010294,96
      PIPPOFinanziamento da controllante007020243881609
      PIPPOFinanziamento da controllata00702025805000
      PIPPODebiti per BOLLO VIRTUALE00702027-5928
      PIPPOAltri Debiti0070202890000
      PIPPOCessione del quinto00702029465
      PIPPODEBITO PER SALDO QUOTE EMO LAB00702030300000
      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous ,

         

        Here's my solution.

        1.Duplicate a table out, then keep half of the two tables, and unify the column names.

         

        2.Append.

         

         

         

        3.Group by.

         

         

        4.Add custom columns.

         

        5.Expand columns and remove the unneeded columns, then filter rows. Keep the row whose index is 1.

         

        6.Add a custom column to get file name.

         

        Here's the results.

         

         

         

        Best Regards,

        Stephen Tao

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.