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.

Normalize column values

jay_viz
7 - Meteor

I have a dataset which contains different information such as Price, Rating etc. Rating will be always in range of 0-5, however other data like Price and Availability will be different ranges. I am trying to normalize them so that all the attributes look in the range of 0-5 scale.

 

Example: US has 3 cities with each city contain Price, Rating and Availability information. I am looking to see a summary information for each country for each attribute (Price, Rating and Availability) in the range of 0-5 based on the average of values within the country. This will help to plot them in a single graph to compare easily

 

Challenge is how can we adjust the pricing and availability information into a scale of 0-5 similar to how the Rating column is.

 

Base Data

CountryStateNameValue
USCAPrice600
USCARating4.2
USCAAvailability1
USNYPrice800
USNYRating3.9
USNYAvailability1
USPAPrice450
USPARating4.5
USPAAvailability0
PortugalLisbonPrice320
PortugalLisbonRating4.1
PortugalLisbonAvailability1
PortugalPortoPrice250
PortugalPortoRating4
PortugalPortoAvailability0

 

Expected Output

CountryNameValue
USPrice3.8
USRating4.2
USAvailability2.5
4 REPLIES 4
PhilipMannering
16 - Nebula
16 - Nebula

Hey @jay_viz 

 

I don't quite see how the US Availability (with values 0, 1, 1) would end up being normalized to 2.5. But here's my attempt at normalizing the values. Hopefully this can help start you off in the right direction...

PhilipMannering_0-1683319023784.png

 

acarter881
12 - Quasar

Hello, @jay_viz.

 

I am interpreting the minimum as 0 and the maximum as 5. This gives a different result, but I believe it's one method for solving the problem.

 

acarter881_0-1683324401274.png

 

 

 

geraldo
13 - Pulsar

@jay_viz 

 

Here's a wordflow example

 

 

geraldo_0-1683324568434.png

 

RobertOdera
13 - Pulsar

Hi, @jay_viz 

 

Kindly consider interpolation - keep in mind that you might want to use Non-Zero Averages for all fields except Rating.

I hope you find this helpful - Cheers!

 

RobertOdera_0-1683325286161.png

 

Labels
Top Solution Authors