Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

How can I perform the sum function in columns and rows of Excel in Alteryx?

albertfung
6 - Meteoroid

How can I perform the sum function in columns and rows of Excel in Alteryx?

6 REPLIES 6
alexnajm
18 - Pollux
18 - Pollux

I am glad this was posted separately! Sums by rows = Formula, Sums by column = Summarize

 

But if you want further help, you'll need to provide more information

albertfung
6 - Meteoroid

Thanks for your prompt reply. I combine 2 very big Excel files 11M and 15M and show you part of the files below.

 

Left Account IDAge of debtorBusiness SegmentTermination reason - standardizedCurrent Charges OutstandingCurrent Interest OutstandingCurrent Principal OutstandingDate ClosedDate into collectionDate of Legal TitleInterest rate (%)Is Closedportfolio_batch_idPrincipal into Collection/RegisteredPurchase_Date (EOM)Summary Case IDTotal Balance OutstandingVerdict existsRight_2004_01_01_00_00_00Right_2004_02_01_00_00_00Right_2004_03_01_00_00_00Right_2004_04_01_00_00_00Right_2004_05_01_00_00_00Right_2004_06_01_00_00_00Right_2004_07_01_00_00_00Right_2004_08_01_00_00_00Right_2004_09_01_00_00_00Right_2004_10_01_00_00_00Right_2004_11_01_00_00_00Right_2004_12_01_00_00_00Right_2005_01_01_00_00_00Right_2005_02_01_00_00_00Right_2005_03_01_00_00_00Right_2005_04_01_00_00_00Right_2005_05_01_00_00_00Right_2005_06_01_00_00_00Right_2005_07_01_00_00_00Right_2005_08_01_00_00_00Right_2005_09_01_00_00_00Right_2005_10_01_00_00_00Right_2005_11_01_00_00_00Right_2005_12_01_00_00_00Right_2006_01_01_00_00_00Right_2006_02_01_00_00_00Right_2006_03_01_00_00_00Right_2006_04_01_00_00_00Right_2006_05_01_00_00_00Right_2006_06_01_00_00_00Right_2006_07_01_00_00_00Right_2006_08_01_00_00_00Right_2006_09_01_00_00_00Right_2006_10_01_00_00_00Right_2006_11_01_00_00_00Right_2006_12_01_00_00_00Right_2007_01_01_00_00_00Right_2007_02_01_00_00_00Right_2007_03_01_00_00_00Right_2007_04_01_00_00_00Right_2007_05_01_00_00_00Right_2007_06_01_00_00_00Right_2007_07_01_00_00_00Right_2007_08_01_00_00_00Right_2007_09_01_00_00_00Right_2007_10_01_00_00_00Right_2007_11_01_00_00_00Right_2007_12_01_00_00_00Right_2008_01_01_00_00_00Right_2008_02_01_00_00_00Right_2008_03_01_00_00_00Right_2008_04_01_00_00_00Right_2008_05_01_00_00_00Right_2008_06_01_00_00_00Right_2008_07_01_00_00_00Right_2008_08_01_00_00_00Right_2008_09_01_00_00_00Right_2008_10_01_00_00_00Right_2008_11_01_00_00_00Right_2008_12_01_00_00_00Right_2009_01_01_00_00_00Right_2009_02_01_00_00_00Right_2009_03_01_00_00_00Right_2009_04_01_00_00_00Right_2009_05_01_00_00_00Right_2009_06_01_00_00_00Right_2009_07_01_00_00_00Right_2009_08_01_00_00_00Right_2009_09_01_00_00_00Right_2009_10_01_00_00_00Right_2009_11_01_00_00_00Right_2009_12_01_00_00_00Right_2010_01_01_00_00_00Right_2010_02_01_00_00_00Right_2010_03_01_00_00_00Right_2010_04_01_00_00_00Right_2010_05_01_00_00_00Right_2010_06_01_00_00_00Right_2010_07_01_00_00_00Right_2010_08_01_00_00_00Right_2010_09_01_00_00_00Right_2010_10_01_00_00_00Right_2010_11_01_00_00_00Right_2010_12_01_00_00_00Right_2011_01_01_00_00_00Right_2011_02_01_00_00_00Right_2011_03_01_00_00_00Right_2011_04_01_00_00_00Right_2011_05_01_00_00_00Right_2011_06_01_00_00_00Right_2011_07_01_00_00_00Right_2011_08_01_00_00_00Right_2011_09_01_00_00_00Right_2011_10_01_00_00_00Right_2011_11_01_00_00_00Right_2011_12_01_00_00_00Right_2012_01_01_00_00_00Right_2012_02_01_00_00_00Right_2012_03_01_00_00_00Right_2012_04_01_00_00_00Right_2012_05_01_00_00_00Right_2012_06_01_00_00_00Right_2012_07_01_00_00_00Right_2012_08_01_00_00_00Right_2012_09_01_00_00_00Right_2012_10_01_00_00_00Right_2012_11_01_00_00_00Right_2012_12_01_00_00_00Right_2013_01_01_00_00_00Right_2013_02_01_00_00_00Right_2013_03_01_00_00_00Right_2013_04_01_00_00_00Right_2013_05_01_00_00_00Right_2013_06_01_00_00_00Right_2013_07_01_00_00_00Right_2013_08_01_00_00_00Right_2013_09_01_00_00_00Right_2013_10_01_00_00_00Right_2013_11_01_00_00_00Right_2013_12_01_00_00_00Right_2014_01_01_00_00_00Right_2014_02_01_00_00_00Right_2014_03_01_00_00_00Right_2014_04_01_00_00_00Right_2014_05_01_00_00_00Right_2014_06_01_00_00_00Right_2014_07_01_00_00_00Right_2014_08_01_00_00_00Right_2014_09_01_00_00_00Right_2014_10_01_00_00_00Right_2014_11_01_00_00_00Right_2014_12_01_00_00_00Right_2015_01_01_00_00_00Right_2015_02_01_00_00_00Right_2015_03_01_00_00_00Right_2015_04_01_00_00_00Right_2015_05_01_00_00_00Right_2015_06_01_00_00_00Right_2015_07_01_00_00_00Right_2015_08_01_00_00_00Right_2015_09_01_00_00_00Right_2015_10_01_00_00_00Right_2015_11_01_00_00_00Right_2015_12_01_00_00_00Right_2016_01_01_00_00_00Right_2016_02_01_00_00_00Right_2016_03_01_00_00_00Right_2016_04_01_00_00_00Right_2016_05_01_00_00_00Right_2016_06_01_00_00_00Right_2016_07_01_00_00_00Right_2016_08_01_00_00_00Right_2016_09_01_00_00_00Right_2016_10_01_00_00_00Right_2016_11_01_00_00_00Right_2016_12_01_00_00_00Right_2017_01_01_00_00_00Right_2017_02_01_00_00_00Right_2017_03_01_00_00_00Right_2017_04_01_00_00_00Right_2017_05_01_00_00_00Right_2017_06_01_00_00_00Right_2017_07_01_00_00_00Right_2017_08_01_00_00_00Right_2017_09_01_00_00_00Right_2017_10_01_00_00_00Right_2017_11_01_00_00_00Right_2017_12_01_00_00_00Right_2018_01_01_00_00_00Right_2018_02_01_00_00_00Right_2018_03_01_00_00_00Right_2018_04_01_00_00_00Right_2018_05_01_00_00_00Right_2018_06_01_00_00_00Right_2018_07_01_00_00_00Right_2018_08_01_00_00_00Right_2018_09_01_00_00_00Right_2018_10_01_00_00_00Right_2018_11_01_00_00_00Right_2018_12_01_00_00_00Right_2019_01_01_00_00_00Right_2019_02_01_00_00_00Right_2019_03_01_00_00_00Right_2019_04_01_00_00_00Right_2019_05_01_00_00_00Right_2019_06_01_00_00_00Right_2019_07_01_00_00_00Right_2019_08_01_00_00_00Right_2019_09_01_00_00_00Right_2019_10_01_00_00_00Right_2019_11_01_00_00_00Right_2019_12_01_00_00_00Right_2020_01_01_00_00_00Right_2020_02_01_00_00_00Right_2020_03_01_00_00_00Right_2020_04_01_00_00_00Right_2020_05_01_00_00_00Right_2020_06_01_00_00_00Right_2020_07_01_00_00_00Right_2020_08_01_00_00_00Right_2020_09_01_00_00_00Right_2020_10_01_00_00_00Right_2020_11_01_00_00_00Right_2020_12_01_00_00_00Right_2021_01_01_00_00_00Right_2021_02_01_00_00_00Right_2021_03_01_00_00_00Right_2021_04_01_00_00_00Right_2021_05_01_00_00_00Right_2021_06_01_00_00_00Right_2021_07_01_00_00_00Right_2021_08_01_00_00_00Right_2021_09_01_00_00_00Right_2021_10_01_00_00_00Right_2021_11_01_00_00_00Right_2021_12_01_00_00_00Right_2022_01_01_00_00_00Right_2022_02_01_00_00_00Right_2022_03_01_00_00_00Right_2022_04_01_00_00_00Right_2022_05_01_00_00_00Right_2022_06_01_00_00_00Right_2022_07_01_00_00_00Right_2022_08_01_00_00_00Right_2022_09_01_00_00_00Right_2022_10_01_00_00_00Right_2022_11_01_00_00_00Right_Account ID
45596478BankNULL014577.4529494.49 05/12/2008 00:002009-01-2215.940584329494.4931/01/2015 00:00044071.941                                                                                                 107355356338697339364326320309  3003012862621215273273264276276  2903313163151346328341345377347  2383883673661564368400367365366 1403453573593471554370369395352328  3493713553721534368461363343344  2893453293291586370529369343343345337  14313483713465004823192276369   984379380381392381364365366378360 13438119563803913793623630378341  3581874364375364346347455964
42430350BankNULL60086364.8548105.76 06/11/2009 00:002009-12-1614.4901281048105.7631/12/2018 00:000135070.61                                                                         349  5321924773          687                         194575575409         166                                                                                                  424303
145957NULLBankFully paid/partly paid0002013-08-2125/08/2004 00:002002-03-2017.8125964829.331/05/2010 00:00000                                                                                               1200                   8475                                                                                                               145957
74453NULLBankFully paid/partly paid0002019-09-1604/03/2006 00:001996-12-209.46123994567.531/08/2004 00:00000                                                                  4567.5                                                                 669126612641262 125212493929 24851239650 12471242 24626239382  1135  921 360376 3865 696      102319 1282  1533  9034374 236 5626265282625608.13                                      74453
1554046BankNULL6001916.7087730.5 04/03/2006 00:002004-01-217.520239910399.9431/08/2004 00:00010247.211                               2044                                                                                                                        3635        292 865 923879879882878888  608386394850         977463                                       15540
535769547RetailNULL1460717.93630 10/07/2017 00:002017-08-1524011323756.128/02/2018 00:0002177.9361                                                                                                                                                                                                         263           266           267 5357695
326841851RetailNULL14389254.2945508 22/09/2004 00:002016-06-20805838594031/01/2015 00:00016200.291                                                                                                                                                                                                                216           216      3268418
453222842RetailFully paid/partly paid0002017-07-0331/10/2016 00:002017-01-042411059731830/04/2017 00:00000                                                                                                                                                               200315774                                                                 4532228
42979759BankNULL119638742.219260.39 07/11/2011 00:002012-01-0216.2401281021670.3931/12/2018 00:00059198.591                                                                                                                                                                     204                                           2410                 429797
262821756BankNULL6005970.5149561.51 08/04/2014 00:002014-08-1816.240128109561.5131/12/2018 00:00016132.021                                                                                                                                          455   372                                                                        2821 21032083   582    2628217
16105538BankNULL60021590.6717298.6 06/11/2008 00:002009-09-1618.250259620895.631/05/2010 00:00039489.271                                                                               373352                   129627825405130 39644251 932246430 2593161180  6341002 469        376       202     616300      570 691 409268 6425691481883                                                                 161055

 

The original combined file is 29M with 1411128 row. The file contains information about non performing loan (NPL). I want to add up from Right_2004_01_01_00_00_00 to Right_2022_11_01_00_00_00 to calculate the total repayment of each account ID. In addition, I want to answer the following 3 questions. Would you please tell me a quick way to do it? Thank.

  1. Stratification of the portfolio
  2. Analysis of the underlying book
  3. Segmentation of the book and the reasons behind it
alexnajm
18 - Pollux
18 - Pollux

Transpose and Crosstab will be your fastest way for dynamic aggregation - I think you may need to go through some of the interactive lessons and the learning path to learn Alteryx as it seems like this is a new tool to you!

alexnajm
18 - Pollux
18 - Pollux

The other questions are beyond the scope of typical community questions since they require industry expertise, so hopefully someone can help

albertfung
6 - Meteoroid

I also guess Transpose and Crosstab can work for it. However, I think there may have other quicker ways to do it, as it is just a simple function in Excel. Thanks for your advices.

alexnajm
18 - Pollux
18 - Pollux

You can use the same SUM function in Alteryx in a Formula tool, but just like Excel it won't be dynamic when new columns come in to sum - Transpose and Crosstab would be your best option for dynamic aggregation.

 

If you don't want dynamic processes, then use a SUM if you are summing a row, or a Summarize if you are summing a column

Labels
Top Solution Authors