Alteryx Designer Desktop Discussions

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

Sequence Divide

Inactive User
Not applicable

Team, 

How can i calculate the ratio based on below logic.
1) if Indicator is - "C"and transaction type = ÜTS then my ratio is "0" 

2) if indicator is D and  transaction type is  ="Stock then my ratio is 1 (i.e 2457000 / 2457000) (stock / UTS)

3) If indicator is "D" and transaction type is "WTS" then my ratio is 0.125 (i.e 307125 / 2457000) (WTS / UTS) 

 

Also it should not overlap with other UID's .. Kindly advice ASAP.  Thanks 

 

UIDRight_QuantityIndicatorTransaction typeRATIO
KYG7484L12457000CUTS -
KYG7484L22457000DStock1
KYG7484L3307125DWTS 0.125
US02369M150248CUTS -
US02369M250248DStock1
US02369M325124DWTS 0.5
2 REPLIES 2
KarolinaRoza
11 - Bolide

hi @Inactive User ,

 

 

I hope I understand your problem correctly and I created workflow for you.

I grouped and assigned UTS quantity to each row based on 8 first digits of UID (columns UID_short and UTS_Quantity), because following your logic I noticed that the same UTS value should be assigned to rows with the 'similar' UID number.

 

Hope it makes sense.

Let me know if it is something you look for.

Karolina

KarolinaRoza_0-1620420902917.png

 

Inactive User
Not applicable

Thanks so much @KarolinaRoza | this logic worked perfectly. 

Labels