Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to add last two rows of two datasets and create new output.

areeba
8 - Asteroid

Hi @atcodedog05 ,

 

I have 2 data sets

Dataset1

 

Colour   A   B    C

Red       1   2     1

Blue       2   5     2

Total      3    7     3

 

 

Dataset2

Colour       A  B    C

Green        2  2     2

Yellow        1  4     8

Total_C      3   6  10

 

Desired Ouput:

All_colour           A    B    C

Grand_total        6    13  13

 

 

idea is to total last two totals together.

 

Can you help ?

 

Regards

Areeba

 

15 REPLIES 15
atcodedog05
22 - Nova
22 - Nova

Hi @areeba 

 

Is it coming like this from the input source ?

areeba
8 - Asteroid

@atcodedog05 

i did the operation on

areeba_0-1632402937362.png

IF [value]>=1000 THEN Round[Value], 1)/1000 ELSE Round([Value], 1) ENDIF

 

but this one:

areeba_1-1632403026077.png

it is coming from source as it is , though i applied the same formula on this but this is how it coming .

 

atcodedog05
22 - Nova
22 - Nova

Hi @areeba 

 

Try this

 

IF [value]>=100 THEN Round[Value], 1)/1000 ELSE Round([Value], 1) ENDIF

areeba
8 - Asteroid

@atcodedog05 

 

yeah this worked but thinking where to apply this as i have to show 697 also before these totals also. i have to fix this in All_color(example) workflow somewhere so that it just display direct 6.911

areeba
8 - Asteroid

@atcodedog05 

 

Thank you for guidance, i solved it 🙂

 

High five 😄

atcodedog05
22 - Nova
22 - Nova

Happy to help and High five 😀 @areeba 

Labels
Top Solution Authors