Alteryx Designer Desktop Discussions

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

Comparing two Formula tools with numerous expressions

Duszko
7 - Meteor

Hello everyone,

 

I am wondering if there is a better way of performing one task in Alteryx and could use an expert opinion.

 

In my job, I often check a configuration of a Formula tool from a previous period. This Formula tool contains numerous expressions. I do this to determine how much of this previous configuration I can re-create in my current workflow. I cannot directly copy the old Formula tool due to some workflow differences. Process of comparing Formula tools from different workflows involves a lot selecting and deselecting each Formula tool. This causes a lot of time wasted on waiting for configuration window to load as well as for expanding expressions from each Formula.

Opening workflow in a different instance of Designer (to see two configuration panes at the same time) is something I would also like to avoid. Other solution that came to my mind would be printing all Formula expressions in one output file like txt or xlsx. Do you know if there is any smart and quick way to do this? 

Thanks in advance.

2 REPLIES 2
DataNath
17 - Castor

Hey @Duszko, hopefully I'm understanding the request correctly. If so, here's one approach you could take to speed things up. I've made a very simple example workflow here containing a Text Input and a small handful of basic formulae to demonstrate the concept:

 

DataNath_0-1676287894477.png

 

Now, we save a second copy of this workflow, but as a .xml file:

 

DataNath_1-1676287979867.png

 

Now, in a new workflow, we can simply bring this plain-text copy of our comparison workflow in via the Input Data tool (ticking option 8 to Return Outer XML):

 

DataNath_2-1676288065099.png

 

From there, we simply Filter to only leave the records pertaining to the Formula tool:

 

DataNath_3-1676288111602.png

 

Use the XML Parse tool, selecting the [Properties_OuterXML] field to process:

 

DataNath_4-1676288157490.png

 

And finally, just tidy things up with a Select tool, dropping all unnecessary fields:

 

DataNath_5-1676288188254.png

 

Hope this helps - please shout if you have any further questions! Have attached the packaged workflow demonstrated here for you to play around with.

Duszko
7 - Meteor

@DataNath 

this is exactly what I need. Thank you!

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels