These greatly improve the simplicity, flexibility and power of subsets in formulas. They replace the complicated SUBSET2, SUBSET3 (etc.) functions, and more. Instead of these, use INTERSECTION(SUBSET(...), SUBSET(...), SUBSET(...)).
Examples: The sum of Sales for all records with a different currency to the current record: SUBSET_SUM( Sales, INVERSE(SUBSET(Currency)) )
The number of records with yield < 0.1 and in USD or GBP: RECORDCOUNT(INTERSECTION( UNION(SUBSET(Currency, "USD"), SUBSET(Currency, "GBP")), SUBSET(Yield, 0.1, "<")<br />))
SUBSET2, etc. have only been deprecated. Deprecated functions are supported indefinitely. Deprecating just means they aren't the recommended approach and aren't listed in the function lookup.
Update: performance of INTERSECTION is worse than the equivalent SUBSET2+ functions. We have un-deprecated the SUBSET2+ functions until this can be addressed in 2.7.
Hi Steve, Subset functions used to be based upon the data you had selected. Is this no longer the case, as a Subset_Sum calc i am doing seems to be calculating based upon all the data in the file not just the records i selected Thanks Phil
There's been no change to the way SUBSET functions are applied.
Formulas are calculated for all data. The exceptions are: - when using a view's Aggregate menu, and choosing "(Formula result)" - when using formulae in the content view, and other rich text places - when using Formula measures in the bar/line view.