Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Run macro only on condition

NidhiAg
7 - Meteor

Hi Team,

I have a batch macro with 

1) Macro Input where I pass by Data

2) Control Parameter

 

Now I want to run this macro only if Data row count > 0 Else skip running macro

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @NidhiAg 

 

Can you tell us what does that macro do ?

ArtApa
Alteryx
Alteryx

Hi @NidhiAg - You can implement conditional routing in a couple of ways in Alteryx. If you're keen to use containers, please review the following interactive lesson: https://community.alteryx.com/t5/Interactive-Lessons/Implementing-Conditional-Routing/ta-p/243117 

 

Also, you may want to explore the Detour Tool, which can be a good alternative to Disabling Containers: https://www.thedataschool.co.uk/gregg-rimmer/using-detour-tool-alteryx/ 

 

However, similar questions have been asked on the Community and you may use this solution:

 

NidhiAg
7 - Meteor

Thanks I will definitely look at Detour but u gave me idea of conditional container. I have done those so will be using this.

 

Thanks and Thanks to this awesome community. SO much to learn

apathetichell
20 - Arcturus

just add a filter before you call the batch macro. Have the macro after the true end of the filter and filter by whatever you are counting >0... If you mean you want the macro to run - but not do anything @ArtApa 's links should help.

Labels
Top Solution Authors