Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn 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 |
---|---|
94 | |
79 | |
73 | |
63 | |
58 |
User | Count |
---|---|
110 | |
103 | |
84 | |
65 | |
62 |