Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Data cleaning help

COrr
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

13 REPLIES 13
danilang
19 - Altair
19 - Altair

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

 

COrr
7 - Meteor

Here you go. 

NickSm
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

danilang
19 - Altair
19 - Altair

@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

COrr
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.  

danilang
19 - Altair
19 - Altair

@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

COrr
7 - Meteor

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

danilang
19 - Altair
19 - Altair

Here ya go!

 

WF.png

 

Results.png

 

Dan

COrr
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