Jericho Kyle Tamayo
03/24/2026, 2:52 AMCeligo AI
03/24/2026, 2:52 AMAI generated answer (using internal Slack threads):The issue you're experiencing seems to be related to the way the MAX function is being used in your formula. The MAX function is an aggregation function that returns the maximum value in a set of values. In your case, it's returning the maximum value of the absolute amounts of the 'Deposit Application' transactions. However, the MAX function doesn't consider the individual transactions, but rather the entire set of transactions. This means that if there are other transactions in your data set that have an absolute amount greater than 2,740,000.00, the MAX function will return that higher value. In your case, it seems like there might be other transactions in your data set that are not 'Deposit Application' transactions but have an absolute amount greater than 2,740,000.00. Because your CASE statement returns 0 for these transactions, they are not affecting the sum, but they are affecting the MAX function. To solve this issue, you could try using a different approach to calculate the maximum absolute amount of the 'Deposit Application' transactions. For example, you could create a separate field in your data set that only contains the amounts of the 'Deposit Application' transactions and then use the MAX function on that field. Here's an example of how you could modify your formula:
MAX(
DISTINCT CASE
WHEN {applyingtransaction.type} = 'Deposit Application'
THEN ABS({applyingtransaction.amount})
ELSE NULL
END
)
In this modified formula, the CASE statement returns NULL for transactions that are not 'Deposit Application' transactions. The MAX function ignores NULL values, so it will only consider the amounts of the 'Deposit Application' transactions.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/24/2026, 2:53 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.860351622
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830749571
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827880859
Celigo AI
03/24/2026, 2:53 AM