We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Alteryx summarize tool median gives wrong number

Alder
7 - Meteor

I have discovered this bug while at work and I'm not allowed to upload anything from my work PC.

 

median gives wrong number when nulls are involved (or maybe more)

 

I had large dataset at work with 100,000 records, a bunch of dates (date) and a numeric field (percentage)

 

when validating the results of the summarize tool (group by date, median percentage) I saw that it gives the wrong number for many of the dates

 

upon further investigation this seems to happen on my older version of alteryx but still why wud this happen?

11 REPLIES 11
cjaneczko
13 - Pulsar

What if you change the Nulls to 0's and then use the Median - Ignore 0's option in the summarize tool?

alexnajm
18 - Pollux
18 - Pollux

It's hard to tell with the screenshots what's going on - if you can paste your data before and after (since you can't post the workflow) that'd be helpful!

 

Otherwise @cjaneczko 's suggestion is good to try!

Alder
7 - Meteor

ignore 0 works, but thats just like putting duct tape on it

cjaneczko
13 - Pulsar

Without seeing the dataset its hard to diagnose the issue.

alexnajm
18 - Pollux
18 - Pollux

I would disagree with that slightly @Alder - Alteryx is just giving you multiple median options depending on your data!

Alder
7 - Meteor

Original Data:

RecordIDdatepercentage
12024-05-02[Null]
22024-10-31402.761161


After Group By date, Median percentage:

date
Median_percentage
2024-05-02402.761161
2024-10-31402.761161


After Group By RecordID, Median percentage:

RecordID
Median_percentage
1[Null]
2402.761161

 

 

The first result is clearly just wrong, make your own text input and try it out. (Make sure date is Date data type and percentage is Double)

I think at work I had AMP turned on, forgot to try it with AMP turned off. But we tested out the same workflow on three different PCs, two PCs (with an older version of Alteryx) had the wrong result. Not sure if it's because of the version or something else like AMP

alexnajm
18 - Pollux
18 - Pollux

I am not seeing the same behavior (version 2024.2)

Screenshot 2025-05-12 105029.png

Alder
7 - Meteor

The 2022 version ones from work got wrong results.

But the 2025 version got it correct.

Can you try with and without AMP? also make sure date is Date, because it works if its a string but not if its a date for me

alexnajm
18 - Pollux
18 - Pollux

AMP doesn't affect it, and Date is a date data type

Labels
Top Solution Authors