Alteryx Designer Desktop Discussions

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

Generate a row that sums up the totals of the other rows by category

iamkamara_jpm
5 - Atom

Hi all,

 

Looking to insert a new row that takes the total of the rows based on video game genre.

 

[Below is just sample data for illustrative purposes]

 

Below is what I have

Video Game GenreSales Amount
Adventure10
Adventure12
Adventure14
Fantasy21
Fantasy5
Fantasy

14

 

Sports40
Sports12
Sports14

 

Below is what I am want to output

 

Video Game GenreSales Amount
Adventure10
Adventure12
Adventure14
Total Adventure36
Fantasy21
Fantasy5
Fantasy

14

 

Total Fantasy

40

Sports40
Sports12
Sports14
Total Sports66
Grand Total ( Sports, Fantasy Adventure)142
3 REPLIES 3
JosephSerpis
17 - Castor
17 - Castor

Hi @iamkamara_jpm one way you can achieve the output you describe is using the summarise tool and formula tool to sum up the genres and add Total or Grand Total. Then using unions tools with a sort tool you can bring this data together in order specified. I mocked up one approach to solve this. 

 

Totals_16092023.JPG

Raj
14 - Magnetar

.

Peachyco
11 - Bolide

Another approach is to use the Tile Tool. If we tile by the unique values of the Genre, the Tile Sequence Number can be used to find the rows where the sub-totals need to be (whatever is the last sequence number for each genre, we increase it by 1).

 

Alteryx - iamkamara_jpm Game Genre Sales a.png

Alteryx - iamkamara_jpm Game Genre Sales b.png

Labels