
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Feb 07, 2023 01:45 PM
Need the 'Test Formula' field to format the 'Trip Total:' as currency. Any ideas anyone?
Solved! Go to Solution.
1 Solution
Accepted Solutions

Solved
See Solution in Thread
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Feb 07, 2023 02:47 PM
Many thanks to @W_Vann_Hall and his demonstration base for Pretty Print - for an answer!
DATETIME_FORMAT({Date of Trip}, 'YYYY-MM-DD')
&"\nTrip Total: "& IF(
LEFT({Sourcing Trip Total}&'',1,1)='-',
'-',
'')&'$'&
IF(
ABS(VALUE({Sourcing Trip Total}&''))>=1000000,
INT(ABS(VALUE({Sourcing Trip Total}&''))/1000000)&','&
IF(
INT(MOD(VALUE({Sourcing Trip Total}&''),1000000)/1000)<100,
REPT('0',3-LEN(INT(MOD(VALUE({Sourcing Trip Total}&''),1000000)/1000)&'')),
'')&INT(MOD(VALUE({Sourcing Trip Total}&''),1000000)/1000)&','&
IF(
INT(MOD(VALUE({Sourcing Trip Total}&''),1000))<100,
REPT('0',3-LEN(INT(MOD(VALUE({Sourcing Trip Total}&''),1000))&'')),
'')&INT(MOD(VALUE({Sourcing Trip Total}&''),1000)),
IF(
ABS(VALUE({Sourcing Trip Total}&''))>=1000,
INT(ABS(VALUE({Sourcing Trip Total}&''))/1000)&','&
IF(
INT(MOD(VALUE({Sourcing Trip Total}&''),1000))<100,
REPT('0',3-LEN(INT(MOD(VALUE({Sourcing Trip Total}&''),1000))&'')),
'')&INT(MOD(VALUE({Sourcing Trip Total}&''),1000)),
INT(ABS(VALUE({Sourcing Trip Total}&'')))))&'.'&
IF(
LEN(ROUND(MOD(VALUE({Sourcing Trip Total}&''),1)*100,0)&'')<2,
'0',
''
)&
ROUND(MOD(VALUE({Sourcing Trip Total}&''),1)*100)
&"\nSales Tax %: "& {Sales Tax %}
1 Reply 1

Solved
See Solution in Thread
Comment Post Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Feb 07, 2023 02:47 PM
Many thanks to @W_Vann_Hall and his demonstration base for Pretty Print - for an answer!
DATETIME_FORMAT({Date of Trip}, 'YYYY-MM-DD')
&"\nTrip Total: "& IF(
LEFT({Sourcing Trip Total}&'',1,1)='-',
'-',
'')&'$'&
IF(
ABS(VALUE({Sourcing Trip Total}&''))>=1000000,
INT(ABS(VALUE({Sourcing Trip Total}&''))/1000000)&','&
IF(
INT(MOD(VALUE({Sourcing Trip Total}&''),1000000)/1000)<100,
REPT('0',3-LEN(INT(MOD(VALUE({Sourcing Trip Total}&''),1000000)/1000)&'')),
'')&INT(MOD(VALUE({Sourcing Trip Total}&''),1000000)/1000)&','&
IF(
INT(MOD(VALUE({Sourcing Trip Total}&''),1000))<100,
REPT('0',3-LEN(INT(MOD(VALUE({Sourcing Trip Total}&''),1000))&'')),
'')&INT(MOD(VALUE({Sourcing Trip Total}&''),1000)),
IF(
ABS(VALUE({Sourcing Trip Total}&''))>=1000,
INT(ABS(VALUE({Sourcing Trip Total}&''))/1000)&','&
IF(
INT(MOD(VALUE({Sourcing Trip Total}&''),1000))<100,
REPT('0',3-LEN(INT(MOD(VALUE({Sourcing Trip Total}&''),1000))&'')),
'')&INT(MOD(VALUE({Sourcing Trip Total}&''),1000)),
INT(ABS(VALUE({Sourcing Trip Total}&'')))))&'.'&
IF(
LEN(ROUND(MOD(VALUE({Sourcing Trip Total}&''),1)*100,0)&'')<2,
'0',
''
)&
ROUND(MOD(VALUE({Sourcing Trip Total}&''),1)*100)
&"\nSales Tax %: "& {Sales Tax %}
