如何在我的银行对帐单中排除一个度量范围?

How can I exclude a measure range in my bank statement?

我正在为我的支票账户中的一些年度报表数据建模,我想查看我每月的借记,但不包括我的 rent/utilities。现在它们的价格波动很大,所以价格在 775 美元到 1000 美元之间。我正在尝试创建一个计算字段,它将忽略此范围内的数字。 Tableau 说这个计算是有效的,逻辑似乎在那里?它似乎并没有排除那些数字..

if sum([Debits]) >=775 and sum([Debits]) <=1000
then sum([Debits])-1 'this is where I want those debits to be excluded
ELSE sum([Debits])
END

你为什么不试着把它变成 0:

if [Debits] >=775 and [Debits] <=1000
then 0
ELSE [Debits]
END

这将在总和计算中排除这些借记。