Alteryx Designer Desktop Discussions

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

Look for value within Column

BRRLL99
11 - Bolide

Hi I have following data-set with 2k Records
same amount needs to be matched with same negative amount

DATA
100
-100
300.01
400.01
-300.01
500
600
6.6
-600
-6.6

 

Expected Output: When I total "M" values it should be zero

DATAMatch
100M
-100M
300.01M
400.01 
-300.01M
500 
600M
6.6M
-600M
-6.6M
7 REPLIES 7
ShankerV
17 - Castor

Hi @BRRLL99 

 

One way of doing this.

 

Step 1: Record ID tool

 

Step 2: Filter tool

Contains(ToString([DATA]),'-')

 

Step 3: Formula tool

Join the True node from Filter tool to Formula tool

 

Output Column: Temp

ToNumber(Trim(ToString([DATA]),'-'))

Data Type: Double

ShankerV
17 - Castor

Hi @BRRLL99 

 

Step 4: Join tool

Join the Formula tool output to L node

False node output or filter tool to R node 

 

Join by Specific Fields

Temp -> Data

 

Step 5: Select tool

From the J node of Join tool, establish the link to 2 select tool

 

In select tool 1, select only 1st two columns and deselect the remaining

In select tool 2, select only the last 2 columns and deselect the remaining

 

Step 6: Formula tool

Create a formula tool from both Select tool.

 

Output column = Match

"M"

 

Step 7: Union tool

Link L and R node from join tool to Union tool

Then also both Formula tool

So there will be 4 linkages.

 

Auto Config by Position

 

Many thanks

Shanker V

BRRLL99
11 - Bolide

For Step: 3 
What should be the Formula?

ShankerV
17 - Castor

Hi @BRRLL99 

 

This is the formula for Step 3:

ToNumber(Trim(ToString([DATA]),'-'))

Qiu
21 - Polaris
21 - Polaris

@BRRLL99 
Do you have any duplicated value in the Data Column?

If No, then we can do it with an Appending Tool?

If Yes, then can you give a sample with expected output?

BRRLL99
11 - Bolide

i didn't check my Values have duplicates

Let me give you realistic data

flying008
14 - Magnetar

Hi, @BRRLL99 

 

FYI.

 

录制_2024_04_01_13_33_46_168.gif

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels