Quantcast
Channel: Concentra Blog » Alteryx
Viewing all articles
Browse latest Browse all 4

Alteryx: Must-Know Developer Tips for Complex Workflows

$
0
0

alteryx01In my latest work I’ve been using Alteryx with a  global investment banking client to perform data analytics. We’ve been blending data from a wide variety of heterogeneous data sources, such as relational databases (Oracle, SQL Server, PostgreSQL and Sybase), SharePoint lists, flat files and Salesforce connections (see Chris’s blog, Alteryx: how to control the order of execution). Alteryx workflows can be developed relatively quickly and quite often can become complex depending on the type of analytics performed. I wanted to share some of my favourite features of Alteryx that can help make development and maintenance easier.

Tip #1: Use Aliases

Aliases are great way to store and maintain database connection information in one place. Any changes to the underlying source system properties, such as updating server name, database name, port number or even credentials update, can be done once in the alias repository and all workflows that refer the alias will automatically point to the new details. An alias can be created as shown in Figures 1 & 2.

Note: you need to launch Alteryx Designer as an administrator in order to create a System alias (Right Click on Alteryx Designer icon -> “Run as administrator”).

Image1

Figure 1: Manage Alias Repository

 Image2

Figure 2: Alias setup

Tip #2: Use Constants

It is quite common to hardcode values (‘constants’) in workflows using any of the following ways:

  1.  text input tool
  2.  variables within formula tool
  3.  hardcode the values within formula/any other transformation tools

 

If the values are hardcoded within tools, especially in very large or complex workflows, maintenance can be difficult. The ‘constants’ property allows us to define all static variables in one place, so that they are accessible throughout the entire workflow. ‘Constants’ can be created as shown in Figure 3.

 Image3

Figure 3: Constants

Tip #3: Use Macro Search Paths

Similar to defining aliases in  one place – as mentioned in Tip #1 – macro search paths can be defined in one place and made available as Tools in a Tool palette, as shown in Figures 4 & 5. You can even assign fancy images to macros in the Tool palette.

 Image4

Figure 4: Macro Search Path setup

 Image5

Figure 5: Alteryx Tool palette

Tip #4: Use Truncate instead of Delete & Append

It is common for workflows to do a full refresh of tables. This can be performed using “Delete Data & Append” or “Overwrite Table (Drop)” options of the Output Data tool. The other option is to TRUNCATE the table as a part of “Pre Create SQL Statement” property and use “Append Existing” option as shown in Figure 6. This avoids heavy logging activity of the DELETE statement and saves you from losing any indexes with the Overwrite Table option.

 Image6

Figure 6: Output Tool property settings

On Saturday, we’re heading to the Alteryx Inspire conference in Boston. Watch out for further Alteryx blogs over the next week and if you’re interested in meeting some of the team at the conference don’t hesitate to drop us an email: Weelin.Lim@concentra.co.uk

I hope you found these tips useful. Please comment below if you have any tips for me!

The post Alteryx: Must-Know Developer Tips for Complex Workflows appeared first on Concentra Blog.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles



Latest Images