创建一个计算的倒计时列来评估两个单独的列

Create a calculated countdown column that evaluates two separate columns

我需要使用 DAX 创建一个名为“剩余积分”的新计算列。该列需要评估前一列,该列通过“项目名称”和“Sprint”列与其他行分开。新列查看最大点数(按项目和冲刺)并将其用作初始值。一旦点被添加到“完成点”列,它就会从初始值中减去那些已完成的点。将从当前值中减去任何未来的“完成点数”值。参考截图!

Remaining Points = 
VAR _proj = [Project Name]
VAR _sprint = [Sprint]
VAR _date = [Dates]
VAR _tbl_filt = FILTER('Table', [Project Name] = _proj && 
                                [Sprint] = _sprint &&
                                [Dates] <= _date )
VAR _comp_pts = SUMX(_tbl_filt, [Completed Points])
RETURN [Total Points] - _comp_pts