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

Input data as percentage category in Excel

rachana19
8 - Asteroid

Hi,

 

I am facing a challenge in Alteryx as explained below -

 

Sample input excel file

IDRate1Rate2Rate3
13.15%0.8515.00%
2100%0.380.875
30.546.50%100%

 

However when I use the input tool to import the above data, it is read as below -

 

IDRate1Rate2Rate3
10.03150.850.15
210.380.875
30.540.0651

 

So basically I lose the % symbol and alteryx automatically converts the values to numbers.

How can I retain the % symbol?

 

Thanks in advance

12 REPLIES 12
fmvizcaino
17 - Castor
17 - Castor

Hi @rachana19 ,

 

The only way of doing that is by transforming your number into a string with a %.

 

fmvizcaino_0-1589288687291.png

 

Workflow attached.

Best,

Fernando Vizcaino

 

rachana19
8 - Asteroid

Dear Fernando,

 

Thanks a lot for your reply.

 

As you can see the input, some values in the same column are numbers while others are percentage. So if I convert the values back to %, it wont be correct for all the values.

 

Is there any way to retain the input in alteryx as it is?

 

Regards,

Rachana Varma

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @rachana19,

 

Could you attach a sample file for which this is an issue?

 

Regards,

Jonathan

rachana19
8 - Asteroid

Dear Jonathan,

 

Thanks a lot for your reply.

Unfortunately I cannot share the original data due to confidentiality, however I am sharing a sample file. 

Kindly suggest if we can retain the data as it is in Alteryx.

 

Regards,

Rachana 

rachana19
8 - Asteroid

Hi All,

 

Could anyone please help in this regard?

atcodedog05
22 - Nova
22 - Nova

Hi @rachana19 ,

 

Your sample data doesnt have any similar data. Can you check and guide us on which sheet or repost  the data.

rachana19
8 - Asteroid

Hi 

 

This is how I have the data in input file. Same column has some fields as general and some as percentage.

Please suggest.

atcodedog05
22 - Nova
22 - Nova

Hi @rachana19 ,

 

The issue you are facing is caused by excel and its data consideration.

 

One of the fix is changing the data types in excel. But i do know thats a tedious task.

 

A quick fix is save the sheet as .csv (csv considers all the data as string, which provides opportunity for manipulation)

 

Here is the workflow of manipulation. 

atcodedog05_1-1589436791603.png

 

If the number has % then divide by 100 else no.

Change this to suit your requirement.

 

atcodedog05_0-1589436733438.png

 

Hope this helps

rachana19
8 - Asteroid

Thanks a lot for this possible solution. I will check with the person providing inputs, if we can convert to csv.

But this works great.

Labels
Top Solution Authors