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.
SOLVED

Bug? Macro for Summarize tool: the prefix "Sum_" become suffix "_Sum"

PangHC
13 - Pulsar

i just create a macro for subtotal and grand total, but the column name have different behavior.

where the "sum_" become "_sum"

 

when i debug, it working again if i click into the conflguration. 

Screenshot 2025-01-23 110724.png

Screenshot 2025-01-23 110705.png

4 REPLIES 4
PangHC
13 - Pulsar

additional: i tested in 2023.1 and 2024.2

possible reason is rename missing so add "action" and "field" to form "rename"

and the "action" are in front of "field" and cause the concate error.

Screenshot 2025-01-23 113733.png

but the input value is "action" are behind the "field"

Screenshot 2025-01-23 113819.png

 

here the normal for comparison

Screenshot 2025-01-23 113832.png

 

 

alexnajm
18 - Pollux
18 - Pollux

Both show as "_sum" to me in your screenshots - feel free to post the macro for the most help

PangHC
13 - Pulsar

@alexnajm 
i thought i posted it already.

 

currently my solution is add another replace to cover the "_sum".

 

PangHC
13 - Pulsar

fixed by change the action tool formula, instead formula in list box tools.

 

REGEX_Replace([#1], '(".+?")', '<SummarizeField field=$1 action="Sum" rename=$1 />')

Screenshot 2025-01-24 121318.pngScreenshot 2025-01-24 121307.png 

Labels
Top Solution Authors