community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx Knowledge Base

Definitive answers from Designer experts.
Upgrade Alteryx Designer in 10 Steps

Debating whether or not to upgrade to the latest version of Alteryx Designer?

LEARN MORE

Tool Mastery | Summarize

Community Content Engineer
Community Content Engineer
Created on

1.png

This article is part of the Tool Mastery Series, a compilation of Knowledge Base contributions to introduce diverse working examples for Designer Tools. Here we’ll delve into uses of the Summarize Tool on our way to mastering the Alteryx Designer:

 

Did you know the average football game lasts 3 hours and 12 minutes and only amounts to roughly 11 minutes of play? Now, I love trying to eat Doritos through my TV screen as much as the next guy, but for me the highlights are definitely a better watch. The Summarize Tool would probably agree - the most effective communication of your data is the most concise summary of it. Whether it’s concatenating strings for storage, merging reports to have better readability, getting your spatial objects to interact, or even calculating averages and other formulas on groupings of data, the Summarize Tool can reframe your data to be more informative. This article provides a few examples on how.

 

  • The Summarize Tool has utility for nearly every data type – numerics, strings, spatial objects, behavior profiles, and even reporting elements. Just to name a few of the useful actions (from the full list of summary processes available here) numerics can be summed, averaged, converted into percentiles, or used to find standard deviation. They can also be used in a number of financial calculations. Strings are easily concatenated with the delimiter of your choice, or
    identified as the longest or shortest strings in your groupings. If you have a knack for spatial, you can combine your spatial objects or use them to create intersections, bounding rectangles, convex hulls, and centroids as well. You can even use the tool to count the records you have in each respective group, or identify their minimum (min) or maximum (max) values. While not required, these processes, or actions, can be aggregated across groupings specified in your data by using the “GroupBy” action on one or more fields. This applies the action to sets of records in your dataset that share a unique value in your chosen group by field. For your reference, we’ve attached a v10.6 workflow (Summarize Tool.yxmd) demonstrating uses for each of the applicable data types the Summarize Tool can transform.
  • If you like the granularity of information your summarized data provides, but want it to supplement your original data set, you can join the two together using the GroupBy field as your join field (be sure to deselect redundant fields in the join!). The attached v10.6 Summarize Count Field Append.yxzp provides an example of this (see the addition of the “CustomerSegment Count” field below):

2.png

 

3.png

 

  • The Summarize Tool can also be used to reshape your data – much like another Transform Tool, Cross-Tab, where rows that are first concatenated can be easily converted to columns (with the Text to Columns Tool). Summarize Reshape.yxzp, attached, shows this reshape in v10.6:

 

4.png

 

5.png


Lastly, if you love using the Summarize Tool but find yourself spending time renaming fields after it adds prefixes for each action (you have high standards, we know, it’s why you use Alteryx), try emulating the approach in the attached v10.6 workflow, Trim Summarize or Join Prefixes.yxzp, to remove them.


By now, you should have expert-level proficiency with the Summarize Tool! If you can think of a use case we left out, feel free to use the comments section below! Consider yourself a Tool Master already? Let us know at community@alteryx.com if you’d like your creative tool uses to be featured in the Tool Mastery Series.

 

Stay tuned with our latest posts every Tool Tuesday by following Alteryx on Twitter! If you want to master all the Designer tools, consider subscribing for email notifications.

Attachments
Comments
Asteroid

How does it work when grouping by more than one variable?  Does it group by the first then the second or does it take both joined together on the data? 

 

Thank you,

Asteroid

After opening, I am not able to see data in the input source. Please advise how to see the data.

Community Operations Manager
Community Operations Manager

 @petgrap which package are you seeing this issue? Did you run the workflow after installing the package? what version of Alteryx are you on?

 

Thanks

DanM

Atom
I had a similar problem as that faced by @petgrap. I cannot see any source data. I am using 11.7 Is it possible to share the data file?