Percent of Total outside filtered range

Hello, I have used this formula for percent of total. However, it calculates the percent of total within the filtered range. I need it to calculate an overall percent of total. I have applied a top 20 filter to get the top 20 advertisers only. The percent of total sums to 100% for these 20 advertisers whereas I need to see what % of all advertisers do these top 20 contribute to. Thanks a lot!

percentOfTotal(
sum({delivered_spend})
)

Can you use the pre_fitler on your sum?

percentOfTotal( sum(sumOver({arrival_timestamp_int},[],PRE_FILTER)))

You will need to add partitions to it.