Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

get amount of hit

keepcalm
7 - Meteor

hi team,

 

I have a workflow where i need to get "Amount of hit."

i.e "No of counts" minus the figures in "Static Table" in descending order.

Eg 67 minus  66  which is 1 then minus off last figures which is 1(since balance 1 cant be minus off with others since itll be negative) which is 2 hits.

Note: No of counts minus static table (descending order) should always be 0.

 

Any clue to this? Thanks.

 

 

keepcalm_0-1647921930279.png

 

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@keepcalm 
I am having difficulty in understanding the logic here.
Can you try to eloborate it?
Thanks.

keepcalm
7 - Meteor

@Qiu 

Eg Take 67 as count

i.e 67 - 66 = 1 (counted as 1 hit), 1(which is the balance) - 1 =0 (counted as 2 hit)

Final figures should always be 0 and figures to minus off cant be a negative

Eg 67 - 66 = 1 then taking 1 - 30= -29 which is why the static table is based on descending order which can be minus off 

that will not equal to a -ve.

 

Hope this clarifies

JarekSkudrzyk
11 - Bolide

@keepcalm 

Please try this solution - it is based on iterative macro.

Hope I got your idea right.

Labels
Top Solution Authors