Alteryx Designer

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

Data cleaning help

Highlighted
7 - Meteor

so I have a situation where I have data that needs desperate cleaning.  In the example below under Provider Type and Provider Phone number I need to replace the number with the majority number listed.  Under ProviderLicense I need to replace the nulls with the with the License number.

 

clipboard_image_0.png

Highlighted
17 - Castor
17 - Castor

Hi @COrr 

 

Can you provide some sample data?  

 

What do you want to do with the Provider Type.

In your description you mention "majority number".  Which field does this come from.

 

Dan

 

Highlighted
7 - Meteor

Here you go. 

Highlighted
Alteryx
Alteryx

Hey @COrr ,

 

A little unclear at this moment as far as what's being replaced - are you looking to fill down the empty License field?

 

If so, a multi-row tool will do that for you, set to update ProviderLicense, with an expression of:

 

If IsNull([ProviderLicense]) then [Row-1: ProviderLicense]

Else [ProviderLicense]

Endif

 

If there's some more to it, feel free to post an example of what you'd like your end result to be.

 

clipboard_image_0.png

 

Example workflow attached

Highlighted
17 - Castor
17 - Castor

@COrr 

 

Thanks for the sample.  Can you provide the answers to my other 2 questions as well?  Without those, I can't tell what you want.  the easiest way to do that is give us an example of what the output data should look like

 

Dan

Highlighted
7 - Meteor

I know I'm terrible at explaining things.  In the column ProviderType there is multiple Examples like  FM, Board Certified FM, FP and fam med.  Since FM is imputed the most I would like to replace everything with FM.  

Highlighted
17 - Castor
17 - Castor

@COrr 

 

Is the value always going to be FM, or is it because FM occurs most often in the dataset?

 

Also: what about the majority phone number question?

 

Dan

Highlighted
7 - Meteor

because it occurs the most in the column and also the same for the phone number. 

Highlighted
17 - Castor
17 - Castor

Here ya go!

 

WF.png

 

Results.png

 

Dan

Highlighted
7 - Meteor

This is amazing is there a way we can specify these results to the specific HCP provider name or is that impossible?  

Labels