Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Using a formula on rows with the same group

tbrewski123
6 - Meteoroid

I have a large data set with dozens of different groups.  I am trying to use alteryx to normalize/rescale the data in each of the different groups.  In the example you can see there are three groups: A,B, and C.  I want to apply the following formula to each group rather than the entire data set.

 

(value - min_value)/(max_value - min_value).

 

This will give me a value between 0 and 1 for each group.  So for group A I would find the min and max (554 and 5804377) and apply the formula.  I would want to do the same for B and C.  I can use the summarize data tool to get the min and max for each group.  But I am not sure how to apply the formula to each group individually.  The answer column is what the final output should be once the formula is applied to each group.

 

Thanks for your help!

 

RowGroupValueAnswer
1A13213510.3320
2A5540.0000
3A654560.0163
4A75340.0018
5A981980.0245
6A39791111.0000
7A198190.0048
8A3123540.0784
9B2220.4576
10B4841.0000
11B10.0000
12B770.1573
13C64650.0000
14C798160.0075
15C97978191.0000
16C645610.0059
17C4544540.0458
18C6515610.0659
19C6515670.0659
20C7598790.0769
1 REPLY 1
benakesh
12 - Quasar

Hi @tbrewski123 ,

After summarize  join  to data to add min/max values to all records. 

benakesh_0-1572114370565.png

Labels