Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi good day,
Can anyone help me on my calculated column, if the result is negative change to 0.
Thank you
Solved! Go to Solution.
Hi @AllanBerces ,
Apologies for the typo. What about like below?
Daily Earned =
VAR Result =
CALCULATE (
SUM ( 'JC Daily Progress'[Daily Earned] ),
FILTER (
ALL ( 'JC Daily Progress' ),
'JC Daily Progress'[Progress Date] = EARLIER ( 'S-CURVE_OVERALL'[Plan Date] )
&& 'JC Daily Progress'[Projectname] = EARLIER ( 'S-CURVE_OVERALL'[ProjectName] )
)
)
RETURN
IF ( Result < 0, 0, Result )
Best regards,
Hi @AllanBerces ,
What about modifying your calculated column dax like below:
Daily Earned =
VAR Result =
CALCULATE (
SUM ( 'JC Daily Progress'[Daily Earned] ),
FILTER (
ALL ( 'JC Daily Progress' ),
'JC Daily Progress'[Progress Date] = EARLIER ( 'S-CURVE_OVERALL'[Plan Date] )
&& 'JC Daily Progress'[Projectname] = EARLIER ( 'S-CURVE_OVERALL'[ProjectName] )
)
)
RETURN
IF ( Result < 0, 0, Result )
Best regards,
Hi @AllanBerces ,
Apologies for the typo. What about like below?
Daily Earned =
VAR Result =
CALCULATE (
SUM ( 'JC Daily Progress'[Daily Earned] ),
FILTER (
ALL ( 'JC Daily Progress' ),
'JC Daily Progress'[Progress Date] = EARLIER ( 'S-CURVE_OVERALL'[Plan Date] )
&& 'JC Daily Progress'[Projectname] = EARLIER ( 'S-CURVE_OVERALL'[ProjectName] )
)
)
RETURN
IF ( Result < 0, 0, Result )
Best regards,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |