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

Display Numeric Data Aligned right with commas

derekbelyea
12 - Quasar

Is there a way to have numeric data in the results window displayed right justfied with alignment of the decimal point and commas?

 

So that instead of this

 

Results left.jpg

 

We would see this:

Results right.jpg

 

 

 

3 REPLIES 3
MarqueeCrew
20 - Arcturus
20 - Arcturus
Try

Tostring(sum_sales,2,1)

It will become a string and format as you requested.
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
derekbelyea
12 - Quasar

Thanks.  That pointed me in the right direction but the new string value was still left justified.

 

This adjustment to the formula fixes both issues:

 

PadLeft(ToString([Sum_Sales],2,1),20," ")

 

Resulting in the solution I was looking for:

 

TotalSales Right.jpg

 

Would be friendly to users if the default presentation of numeric data could be a user or system setting.

aduplessie
7 - Meteor

Agreed! I really wish the numbers displayed with commas in the preview, or that this was at least an option. It can be very hard to read without them.

Labels