Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Logic Definition

vijaylnyadav
8 - Asteroid

Hi All,

 

I am confused of how to use the logic with the help of which tool.

Please consider the below sample data.

 

vijaylnyadav_0-1613107658339.png

 

 

Condition:

 

If all the roll numbers are failed then in expected result i want a single subject name and in roll column ALL should come instead of mentioning every roll number.

4 REPLIES 4
RolandSchubert
16 - Nebula
16 - Nebula

Hi @vijaylnyadav ,

 

main issue seems to be the split between records for "all failed" subjects and the remaining records. I used two Summarize tools to count the number of fails and the total number for each subject and a Join tool (left output anchor) to select only the subjects with different numbers. For subjects with #fails = #total, I added an additional row with "ALL" as roll number.

 

2021-02-12_08-01-38.jpg

 

Let me know if it works for you.

 

Best,

 

Roland

vijaylnyadav
8 - Asteroid

Hi, @RolandSchubert thanks for your comment.

 

This solution works for my workflow

However, if you have any other solution then please help me out

 

Thankyou

 

grazitti_sapna
17 - Castor

Hi @vijaylnyadav , give this a try if this is what you are looking for?

grazitti_sapna_0-1613115645881.png

 

If this works for you kindly mark this post as solution.

Thanks.

 

Sapna Gupta
vijaylnyadav
8 - Asteroid

Hi @grazitti_sapna 

 

In your workflow you have manually used the count whereas we it should take count from input file because the count can vary in the input file.

 

This was the only doubt other wise it was a good solution.

 

Solution provided by @RolandSchubert has worked for me and i am using that solution in my workflow.

 

Thanks for your time and help @grazitti_sapna 

Labels