Forum Discussion
swolfe2
Helper I
1 year agoDynamic Measure Formatting Negative Values with Parentheses Instead of (-)
I am attempting to do some dynamic measure formatting on a DAX measure. However, I'm having difficulty getting negative values to display with parentheses instead of the negative symbol. For examp...
OwenAuger
Super User
1 year agoHi swolfe2
I would recommend this:
VAR CurrentValue = SELECTEDMEASURE()
VAR AbsValue = ABS ( CurrentValue )
RETURN
IF (
AbsValue >= 1000000,
"$#,0,,. M;($#,0,,.) M",
"$#,##0;($#,##0)"
)
This makes use of the "<positive format>;<negative format>" structure.
Does this work for you?
- swolfe21 year ago
Helper I
Worked perfectly, and is an elegant solution. Thanks so much!