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

General Discussions

Discuss any topics that are not product-specific here.

Summing total tuition for med students

jjimenez
8 - Asteroid

I have an example where there's multiple students, various countries and studies. I needed to filter down to medical studies only and get the sum of tuition for all students. I converted the data type to "double" but when I try to sum all I get [null].

Can someone help me and let me know what I'm doing wrong? 

2 REPLIES 2
AdwaitTarudkar
8 - Asteroid

Hi @jjimenez 

This error happens when null values are in the column even after changing the data type to double. If you convert those into zero that will fix your issue.

You can share a screenshot to understand the problem better if this is not the case.

Thanks

gyang3
Alteryx Alumni (Retired)

Hi @jjimenez, looking at your workflow, I think the order of your Select and Data Cleansing tool might be the issue.

 

Solution:  use the select tool first to change the datatype from a string to a float/double, and then lastly use the Data Cleansing tool to convert all nulls to 0s. Now you should be able to use the Summarize tool to sum your data. Sample screenshot below:

 

gyang3_0-1668462926330.png

Hope that helps. If so, please mark as solution so others may benefit from it as well.

 

 

Labels
Top Solution Authors