Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Force .00 Decimals

kristinaheuer
7 - Meteor

Hi there,

 

I have a price list with prices that are round (ex. 66.00) and not uneven (66.12). When data types Fixed Decimals or Forced Decimals, Alteryx will display 66 and 66.12 instead of 66.00 and 66.12. How can I force Alteryx to display the zero decimals when the number is round?

7 REPLIES 7
apathetichell
19 - Altair

I have the same problem on fixed char/fixed delimiter not displaying extra decimals for whole numbers.

 

It doesn't actually matter if you are using a table tool though since in table properties you can force a number to have any number of decimal places.

Qiu
21 - Polaris
21 - Polaris

@kristinaheuer 
I think Alteryx may not have such funtion.

If you really want to display it, the data needs to be convered to string type, use pad right for the missing zeros.

 

AkimasaKajitani
17 - Castor
17 - Castor

Actually we can only use ToString Function and change to field type to string.

 

eg:
ToString(66,2)

 

output:

AkimasaKajitani_0-1619666275513.png

 

 

This work will be done at the end of the reporting process.

apathetichell
19 - Altair

@Qiu @AkimasaKajitani But we can also keep things as numbers and just add the decimals in dec. places above Row Rules in the table tool - no?  Just checked and excel does recognize the table rendered decimals as numbers.

RaviP
8 - Asteroid

Hi @kristinaheuer 

 

Fixed Decimal seems to be working for me. Not sure if I understand your question correctly.

 

This is the input

RaviP_1-1619669759283.png

 

After changing the type to Fixed Decimal, I see the decimal places

RaviP_2-1619669836094.png

 

apathetichell
19 - Altair

@RaviPcan't speak for @kristinaheuer but here's what I get on a browse of a fixed decimal:

Type

FixedDecimal

Records

4

Data Type Size

19
 
 Ok

4

100.00%
 Unique

2

50.00%
 Null

0

0.00%
 Not Ok

0

0.00%
 Empty

0

0.00%

Value Statistics

 
 
Grouped Values
19-19.2
 
 
Max19.2
Min19
Lower quartile19
Upper quartile19.2
Average19.1
Standard deviation0.1154
Sum76.4
Median19.1
Variance1.3333e-02
RaviP
8 - Asteroid

Ah, I see what you're saying @apathetichell.

Labels
Top Solution Authors