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.

Skip the rows according to the conditions

Gaurav0001
Astéroïde

Hello,
Is there any ways to skip the condition rows while doing SUM, but on count it should not skip the conditional row.

For Example.
Amount have 5 rows and it contains some Hexadecimal numbers.
I wanted to skip the Hexadecimal Numbers while performing the SUM,
But while count the Amount field, Should not skip the Hexadecimal number.

Amount
5
1.6
7
1.72529029846191E 09
4


Output :
SUM : 17.6
Total Number of Rows : 5

Thank You in Advance.

3 RÉPONSES 3
bgreedy
Météore

For the example you gave I'd suggest doing each process separately then combing the results

  • Filter out any Hex numbers and sum-up the total
  • Count the total rows of all records
  • Combine results with an append

Image.PNG

 

 

gawa
16 - Nebula
16 - Nebula

hi @Gaurav0001 

You can create another column by Formula tool, and configure expression so value=0 when condition is met(Hexadecimal).

For that column, apply Summarize tool as usual.


This is an example of the above method. Please rephrase expression so as to fit your case.

image.png

maazumders
Atome

I've attached sample workflow and file for your reference. It get the desired answer. Please let me know your thoughts. 

Étiquettes
Auteurs des meilleures solutions