Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Nedd Help with applying logic for row labels

knamc_com
7 - Meteor

I am using a multi-row transformation, but I cannot seem to get the IF statement correct, hoping someone can help me out.

 

Here is the incoming data:

 

Count         Total          
3              3372.08    
3                245.73     
3              3617.81     

 

 

This is current output:

 

CountTotalLabel
33372.08TOTAL INVOICED PREMIUM
3245.73TOTAL INVOICED PREMIUM
33617.81TOTAL INVOICED PREMIUM

 

 

Need it to be:

 

CountTotalLabel
33372.08TOTAL INVOICED PREMIUM
3245.73INVOICED NO DEDUCTIONS
33617.81TOTAL INVOICE

 

 

Here is my logic in the Multiple Row tool:

 

IF [Row-1:Count] = 3 then "TOTAL INVOICED PREMIUM"
ELSEIF [Row-1:Count] + 1 = 3 then "INVOICED NO DEDUCTIONS"
ELSEIF [Row-1:Count] + 2 = 3 then "TOTAL UNUM INVOICE"
else 0
ENDIF

 

 

Any help is greatly appreciated :-)

 

3 REPLIES 3
rzdodson
12 - Quasar

@knamc_comhere is one approach

Raj
16 - Nebula

@knamc_com 
use this
if [Row-2:Count] = 3 and [Row-2:Count] = 3 then "TOTAL INVOICE" elseif [Row-1:Count] = 3 and [Count] = 3 then "INVOICED NO DEDUCTIONS" else "TOTAL INVOICED PREMIUM" endif

hope this helps.

knamc_com
7 - Meteor

Worked amazing, thank you so much!!

Labels
Top Solution Authors