
Contributor
2023-01-16
01:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Filter Negative Values before Aggregation
Hi - Below is a sample data set along with what I am getting vs. what I want. How can I filter the negative values out before the sum aggregation? The problem is Value is an expression. Let's say it's Value1-Value2= Value
Thanks for your help!
584 Views
2 Replies

Employee
2023-01-16
04:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @bc123456
You can use Set Analysis:
Sum({<Value={">0"}>}Value)
Or just using If
Sum( if(Value>0,Value,0))
[],
Pedro
558 Views


MVP
2023-01-16
04:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
another option might be:
Sum(RangeMax(Value,0))
552 Views
