This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi good day, can anyone help me on my calculated column, from my table we required if the sum of total progress per Job is negative then the result is 0 if not then Progress.
DESIRED OUTPUT
| Job | Trade | Year | Progress | Week No. | Result |
| KI222221 | Mech | 2026 | 9.19 | 3 | 9.19 |
| KI222221 | Mech | 2026 | 1.81 | 4 | 1.81 |
| KI222221 | Mech | 2026 | 15.68 | 2 | 15.68 |
| KI222221 | Mech | 2026 | 14.6 | 1 | 14.6 |
| WERT0123 | E&I | 2026 | 4.34 | 1 | 4.34 |
| WERT0123 | E&I | 2026 | 5.52 | 2 | 5.52 |
| WERT0123 | E&I | 2026 | 3.4 | 3 | 3.4 |
| WERT0123 | E&I | 2026 | 69.27 | 4 | 69.27 |
| QWERT65 | Civil | 2026 | 30.97 | 1 | 30.97 |
| QWERT65 | Civil | 2026 | 6.51 | 2 | 6.51 |
| QWERT65 | Civil | 2026 | 14.56 | 3 | 14.56 |
| QWERT65 | Civil | 2026 | 17.7 | 4 | 17.7 |
| BFGT435 | Mech | 2026 | 9.44 | 4 | 0 |
| BFGT435 | Mech | 2026 | -30.06 | 2 | 0 |
| TYJJ56984 | Plumber | 2026 | 0.02 | 1 | 0 |
| TYJJ56984 | Plumber | 2026 | -9.47 | 2 | 0 |
| TYJJ56984 | Plumber | 2026 | -0.02 | 3 | 0 |
| TYJJ56984 | Plumber | 2026 | 4.48 | 4 | 0 |
| HOYTJ0978 | Civil | 2026 | -4.06 | 2 | 0 |
| HOYTJ0978 | Civil | 2026 | 19.73 | 4 | 0 |
| HOYTJ0978 | Civil | 2026 | -39.99 | 3 | 0 |
Solved! Go to Solution.
Hii @AllanBerces
If the total Progress per Job (and Year) is negative, return 0, otherwise return the original Progress value.
Result =
VAR TotalJobProgress =
CALCULATE (
SUM ( 'ProgressData'[Progress] ),
ALLEXCEPT ( 'ProgressData', 'ProgressData'[Job], 'ProgressData'[Year] )
)
RETURN
IF ( TotalJobProgress < 0, 0, 'ProgressData'[Progress] )
Result =
IF(
CALCULATE(
ISEMPTY( DATA ), ALLEXCEPT( DATA, DATA[Job] ), DATA[Progress] < 0
),
DATA[Progress],
0
)
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Please try the formula below:
Result =
VAR JobTotalProgress =
CALCULATE (
SUM ( 'Table'[Progress] ),
ALLEXCEPT ( 'Table', 'Table'[Job] )
)
RETURN
IF (
JobTotalProgress < 0,
0,
'Table'[Progress]
)
Hi @AllanBerces
You can use MAX to make sure that it returns either the positive result or zero at the minimum.
Progress Per Job =
MAX (
CALCULATE ( SUM ( 'Table'[Progress] ), ALLEXCEPT ( 'Table', 'Table'[Job] ) ),
0
)
Hi,
This calculated column formula works
=if(CALCULATE(SUM(Data[Progress]),FILTER(Data,Data[Job]=EARLIER(Data[Job])))<0,0,Data[Progress])
Hope this helps.
Hi,
This calculated column formula works
=if(CALCULATE(SUM(Data[Progress]),FILTER(Data,Data[Job]=EARLIER(Data[Job])))<0,0,Data[Progress])
Hope this helps.
Hi @AllanBerces
You can use MAX to make sure that it returns either the positive result or zero at the minimum.
Progress Per Job =
MAX (
CALCULATE ( SUM ( 'Table'[Progress] ), ALLEXCEPT ( 'Table', 'Table'[Job] ) ),
0
)
Hi @danextian @cengizhanarslan @ThxAlot @rohit1991 thank you very much for the reply working perfectly.
Please try the formula below:
Result =
VAR JobTotalProgress =
CALCULATE (
SUM ( 'Table'[Progress] ),
ALLEXCEPT ( 'Table', 'Table'[Job] )
)
RETURN
IF (
JobTotalProgress < 0,
0,
'Table'[Progress]
)
Result =
IF(
CALCULATE(
ISEMPTY( DATA ), ALLEXCEPT( DATA, DATA[Job] ), DATA[Progress] < 0
),
DATA[Progress],
0
)
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Hii @AllanBerces
If the total Progress per Job (and Year) is negative, return 0, otherwise return the original Progress value.
Result =
VAR TotalJobProgress =
CALCULATE (
SUM ( 'ProgressData'[Progress] ),
ALLEXCEPT ( 'ProgressData', 'ProgressData'[Job], 'ProgressData'[Year] )
)
RETURN
IF ( TotalJobProgress < 0, 0, 'ProgressData'[Progress] )
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 26 | |
| 25 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 41 | |
| 40 | |
| 21 | |
| 20 |