Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have an important column with positive, zero and negative numbers. I need to SUM the negative and postive values separately. New to Powerbi hopefully simple solution.
Solved! Go to Solution.
Try these.
Positive = CALCULATE ( SUM ( 'Table'[Amount] ) , 'Table'[Amount] > 0 )
Negative = CALCULATE ( SUM ( 'Table'[Amount] ) , 'Table'[Amount] < 0 )
SUM_Positive =
CALCULATE(SUM('Table'[Column]), .Table'[Column] > 0)
Same for negative, just replace > with <.
Put your table and column names instead the generic names I used
SUM_Positive =
CALCULATE(SUM('Table'[Column]), .Table'[Column] > 0)
Same for negative, just replace > with <.
Put your table and column names instead the generic names I used
So simple. Thanks
Try these.
Positive = CALCULATE ( SUM ( 'Table'[Amount] ) , 'Table'[Amount] > 0 )
Negative = CALCULATE ( SUM ( 'Table'[Amount] ) , 'Table'[Amount] < 0 )
Thank you
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
67 |