Alteryx Designer Desktop Discussions

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

Summing multiple entries

alexisjensen
8 - Asteroid

Hi,

 

I am a beginner in Alteryx and need help with a particular summing issue.  I have data where there are multiple volume entries per day per region.  I want to convert the data to one summed entry per region per day.  eg:

 

From:

 

North    01/10/2015   100

North    01/10/2015   150

North    01/10/2015   125

 

To:

 

North   01/10/2015   375

 

I can get the result required if I use cross tab with date in rows and Region in columns.  However I want to have it as above with Region / Date / value as a single row.  This will help for later analytics reporting.

 

I appreciate your help.

 

Regards,

Alexis 

 

 

3 REPLIES 3
s_pichaipillai
12 - Quasar

Hi Alexis 

Its Simple :)

 

Connect your data with Summarize tool  (its under Transform)

Group the data by Region and date

Sum the Value

Run it . you should see the data now

 

Note: Make sure your Vlaue for Summing is in Numeric Data type :)

 

Let me know if this works , else i will give a workflow 

alexisjensen
8 - Asteroid

Hi,

 

Thanks for that.  I tried using summarize but didn't understand the group by rules correctly.  I have made it work with Group by Region and date and have 4 new columns of data as below:

 

RegionDateData 1Data 2Data 3Data 4
East01/01/2016100200202125
East02/01/2016150200105150
North01/01/2016150150100200

 

If I want to add a new field and transpose as below do I use the transpose tool?

 

 

RegionDateData TypeValue
East01/01/2016Data 1100
East01/01/2016Data 2200
East01/01/2016Data 3202
East01/01/2016Data 4125
North01/01/2016Data 1150
North01/01/2016Data 2150
North01/01/2016Data 3100
North01/01/2016Data 4200
    

 

Thanks Again.

s_pichaipillai
12 - Quasar

Alexis 

Here you go

Connect your data to Transpose Tool 

In the Transpose Tool Configuration Select the Key Fileds which you dont want to Transpose (your case Region and Date)

Under Data Fields, select the Value field that you want to Transpose(your case column name start with data1....Data 2 etc)

thats it 

Tip: by Default the Transpose names the Transposed Fields as Name and Value, you can use the select tool to rename your Fileds whatever you want

 

Hope this helps and refer the attached screen 

Transpose.PNG

Labels