Minus sign placement in negative prices

Screenshot from 2022-03-17 10-11-04.png

Is there a way to move the '-' symbol to the left of the dollar sign for 'Price' types?

Solved Solved
1 7 291
  • UX
1 ACCEPTED SOLUTION

Thanks for the responses! I was able to achieve it by using a strategy similar to what @graham_howe proposed, a virtual text column with the following formula:

 

CONCATENATE(
  IF(
    [price_field] < 0,
    '-',
    ''
  ),
  TEXT(
    ABS([price_field])
  )
)

 

The dollar signs still came through so I just needed the minus sign in the IF().

Screenshot from 2022-03-17 20-00-58.png

View solution in original post

7 REPLIES 7

Unfortunately there is no easy way to format prices the way you would like. There is the option to using accounting format (it's at the bottom of UX options) but I think that uses parenthesis rather than a minus sign.

Perhaps copying the absolute value in another column and using it for display. 

Actually that's not a bad idea, a VC with something like the following would work,

concatenate(
  if(
    [price_field] < 0, 
    "-$", 
    "$"
  ),
  text(
    abs([price_field])
  )
)

Yes, and to control the display of both columns through their Show fields:

  • For the original column: [_This] >= 0
  • For the new column: [price_field] < 0

__

Why the IF()? I think the goal is to remove the minus sign always. 

The goal was to have the minus sign to the left of the dollar sign for negative numbers.

I need to sleep ๐Ÿ˜ด ๐Ÿ™‚

Thanks for the responses! I was able to achieve it by using a strategy similar to what @graham_howe proposed, a virtual text column with the following formula:

 

CONCATENATE(
  IF(
    [price_field] < 0,
    '-',
    ''
  ),
  TEXT(
    ABS([price_field])
  )
)

 

The dollar signs still came through so I just needed the minus sign in the IF().

Screenshot from 2022-03-17 20-00-58.png

Top Labels in this Space