In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

calcuculating the normal distribution of a column as an output in a new column

CamodCPA
8 - Asteroid

Hello all,

 

I am trying to complete some work previously done in excel--in Alteryx.

 

I have run across the data investigation distribution analysis tool, but I need to export this file as an excel output and need the records in tabular format.

 

I have a simple set of data per employee. Like this

 

EmployeeCount
b6
c7
d1
e2
f8

 

 

and need a simple output of this (similar to the Norm.Dist function in xlxs)

 

EmployeeCountNormDist

b

6x
c7x
d1x
e2x
f8x

 

 

Let me know what you all think!

1 REPLY 1
jdunkerley79
ACE Emeritus
ACE Emeritus

Three ways I know of:

 

1. Use the Python Tool. Something like:

from ayx import Package
Package.installPackages(['pandas', 'scipy'])

 

from ayx import Alteryx
import scipy.stats
df = Alteryx.read("#1")
def addProb(row):
    return scipy.stats.norm(0, 1).cdf(row['Count'])
df['Prob'] = df.apply(addProb, axis=1)
Alteryx.write(df, 1)

 

2. Use the R Tool (havent written in ages...)

3. <ShamelessPlug> Install Alteryx Abacus functions and then you get a NormDist function </ShamelessPlug>

 

Attach sample of 1 & 3

 

Labels
Top Solution Authors