We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Formula tool is not giving proper output even if the condition is met

Sanjana_HS
8 - Asteroid

Hi can anyone help what is wrong with this formula why i am not getting proper result.

Formula used:if [Return Category]=[Categories] then [Rate Per Return] else "No rate" endif

Sanjana_HS_1-1665756728794.png

Please find the excel where there is a rate for the highlighted columns but it is not flowing

5 REPLIES 5
gautiergodard
13 - Pulsar

Hello @Sanjana_HS 

Please see attached workflow.

Seems like your formula was working fine, perhaps it was the way your data was set up that was causing the formula to break.

 

If this answers your question, please accept this as solution :)

Felipe_Ribeir0
16 - Nebula

Hi @Sanjana_HS 

 

Please see if this gives you the expected result.

Felipe_Ribeir0_0-1665757388559.png

 

Sanjana_HS
8 - Asteroid

I have one more doubt can you please help:

My input left anchor of joint tool has 219 records
My input Right anchor of joint tool has 18 records

So when I join it with common field it should give me  237 records but I am getting 822 records why?

gautiergodard
13 - Pulsar

@Sanjana_HS You must have duplicates of the same value coming from the left and right inputs of your join tool.

When these same values join on each other from both data sets it will create row explosion.

Felipe_Ribeir0
16 - Nebula

You said that the result should be 237 = 219 + 18?

 

The number of rows would sum like this with union operations, not joins.

 

If i understood well your problem, the result that you should expect is 219 rows. If the dataset is the same from the original post, check the sheet Rates Column Categories, this column probably have duplicated values and should not have.

Labels
Top Solution Authors