Forum Discussion
Data Label with Parenthesis
You completely didn't understand what i want. I don't want to change the values sign to negative or positive. I just want to show negative values with Parenthesis.
As an example from excel, there is an option in home page to format cell behavior. I need something like that
Hi Anonymous ,
Sorry for my misunderstood.
I'm afraid that there is no similar options in power bi as that in excel.
You could try the calculated column with the formula below.
Column =
IF (
'Table1'[Data] < 0,
"(" & 'Table1'[Data] * -1 & ")",
FORMAT ( 'Table1'[Data], 'Table1'[Data] )
)
Here is the output.
Best Regards,
Cherry
- Anonymous7 years agoNot applicable
as i understand you were changed the Data Type to Text. I'm unable to use text data type because of making mathematical operations.
Is it possible to do that with with decimal number or whole number data types ?- Anonymous7 years agoNot applicable
+ i can't use it in any grapichal visual expect matrix table or score card.
- v-piga-msft7 years agoResident Rockstar
Hi Anonymous ,
Sorry for the delay.
By my tests, I'm afraid that the data lable with "()" will be identified as text type in Power BI Dekstop.
May be you could use the whole number type column make mathematical operations and use text type to show in the visual?
Best Regards,
Cherry