Forum Discussion
Change Values from Negative to Zero in Calculated column
Hello Team,
I need you help on priority.
Need to show the Negative values into Zero in calculated column while doing subtract values from one column to another column.
Please find the below screen shot for your reference .
BBB = Budget - Actual (in BBB column we can see on row values is in Negative and that should be Zero instead of Negaive value )
Is it possible...? If possible, please help me on this ASAP on priority.
Thanks for your reply in advance.
Regards,
RK
If it's a calculate column try:
BBB =
VAR Result = TableName[Budget] - TableName[Actual]RETURN
IF ( Result < 0, 0, Result )
3 Replies
- bcdobbs
Community Champion
If it's a calculate column try:
BBB =
VAR Result = TableName[Budget] - TableName[Actual]RETURN
IF ( Result < 0, 0, Result )
- CNENFRNL
Community Champion
Enclose your original measure [BBB] with max(0, bla ... bla)
- AlexisOlson
Super User
If this is a measure and you want the rows to add up to the total, you'll have to iterate over the account type.
For example,
SUMX ( VALUES ( Table1[Account Type] ), MAX ( 0, [Budget] - [Actual] ) )assuming [Budget] and [Actual] are defined measures.