Forum Discussion
IF
Post Prodigy
6 years agonegative value in bracket
Hi, I have a column that is called "project". its format is decimal number. I want to show negative values with brackets. I tried to make a measure (Measure=FORMAT([Project];"##,###;(##,###);-") Th...
Tahreem24
Super User
6 years agoOr you can also try using Dax:
= IF([Project]<0,&"("& [Project]&")", [Project])
IF
Post Prodigy
6 years agoHi,
When I type [Project], the power bi doesn't recognize it. it underlines it with red unfortunatelly.
- Tahreem246 years ago
Super User
IF ,
What is [Project] exactly? Is it Measure or just a fields or Calculated column?
If it is field from table so try to use aggreagation like SUM,MAX etc.
- Tahreem246 years ago
Super User
IF ,
Use the below DAX:
MEASURE = IF(SUM(Sheet6[Value])<0,"("& SUM(Sheet6[Value])&")", SUM(Sheet6[Value]))- IF6 years ago
Post Prodigy
Hi,
Thank you very much for the help. it helps. The last issue if you could help: when I put brackets, I don't want to see the minus sign. it should be for example; -3 or (3) However, the sum should be as you showed. For example; (3)+4 sum:1 Is there any possibility not to show the minus value?
Regards,
IF