Alteryx Designer Desktop Discussions

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

Dynamic Filter

hillard
7 - Meteor

Hi,

 

I would need your help to solve the below query.

 

I have to eliminate the strikes if CHG_IN_DI is 0, the grouping should be done based on symbol, Expiry_dt and Timestamp.

 

In my data, there are many symbols, expiry dates for same timestamp.

 

let me know if you have any queries.

 

Input 
SYMBOLEXPIRY_DTSTRIKE_PRTYPCLOSECHG_IN_DITIMESTAMP
ABC26-Nov-20450CE102030-Oct-20
ABC26-Nov-20460CE21.21650030-Oct-20
ABC26-Nov-20470CE17.21500030-Oct-20
ABC26-Nov-20450BE24.251200030-Oct-20
ABC26-Nov-20460BE27.1030-Oct-20
ABC26-Nov-20470BE34.35150030-Oct-20
       
Output
SYMBOLEXPIRY_DTSTRIKE_PRTYPCLOSECHG_IN_DITIMESTAMP
ABC26-Nov-20470CE17.21500030-Oct-20
ABC26-Nov-20470BE34.35150030-Oct-20
8 REPLIES 8
atcodedog05
22 - Nova
22 - Nova

Hi @hillard 

 

Here is a workflow for the task. I think grouping in done on Typ too

Output:

atcodedog05_0-1604138147667.png

Workflow:

atcodedog05_1-1604138160678.png

 

Hope this helps 🙂 Please check and let me know.


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

atcodedog05
22 - Nova
22 - Nova

Hi @hillard 

 

Here is a another approach. This assumes the data is already sorted in order.

 

Workflow:

atcodedog05_0-1604138614711.png

Hope this helps 🙂 Let me know which works best for you.

hillard
7 - Meteor

Without any doubt you got the output.

 

However, it seems I didn't explain the problem clearly or I'm not sure the given solution will help me?

 

let me put it in different way.

 

I want to find the strike that is common in "Type", means same strike should present in both "BE"  and  "CE" and that strike doesn't contain zero in " change in DI".

 

In the first step, you have eliminated the zero which is good and second step I'm not sure, it will pick something which is common in both "BE" and "CE"...sample just pick the first or last row right? kindly assist..thanks! 

hillard
7 - Meteor

or even if you can help me to find a way to eliminate the strikes in both "CE" and "BE" based on condition change in "OI"?

atcodedog05
22 - Nova
22 - Nova

Hi @hillard 

 

It makes more sense now here is a workflow based on the logic.

 

workflow:

atcodedog05_0-1604143378269.png

Please check and let me know.

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @hillard 

 

Cheers and Happy Analyzing 😀

hillard
7 - Meteor

Thank you much!

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @hillard 

 

Cheers and Happy Analyzing 😀

 

Happy weekend 🙂

Labels