Forum Discussion
Anonymous
4 years agoNot applicable
Calculate total ignoring negative
Hi everyone, I'm trying to calculate total amount ignoring -ve values in the sum but displaying them on the table. For example I want to calculate total for Apples, Oranges and Banana's whereby th...
- 4 years ago
You could return different values based on whether an individual item was in scope or not, e.g.
Amount = IF( ISINSCOPE( 'Table'[Fruit] ), SUM('Table'[Value]), CALCULATE( SUM('Table'[Value]), 'Table'[Value] > 0 ) )
johnt75
Super User
4 years agoYou could return different values based on whether an individual item was in scope or not, e.g.
Amount = IF( ISINSCOPE( 'Table'[Fruit] ), SUM('Table'[Value]),
CALCULATE( SUM('Table'[Value]), 'Table'[Value] > 0 )
)