Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
timmy
Partner - Contributor III
Partner - Contributor III

Can you replace an aggr() by an set analysis

Hey

Does anybody has ever tried to replace and aggr() with a set analysis to get some more performance?

tnx

1 Reply
fernandotoledo
Partner - Specialist
Partner - Specialist

Hi

You can´t replace one for another because their purpose are diferent.

Set Analysis could be used to replace an IF() statement inside an aggregation like sum(), avg(), count().

In this cases the performance is quite the same, but there are somethings you can do only using the new Set Analysis statement. In most cases the real gain is in Set Analysis´s lower code complexity.

Best Regards,

Fernando