Because I just spent hours trying to figure out the second example that uses FILTER() I thought I'd leave this here. The FILTER works because the RANK of the CURRENT tuple can be used to get the tuple directly after the CURRENT tuple so you can compare the customer names. Rank is 1-based but Item() is 0-based.With comments:WITH SET MYROWS AS FILTER( NONEMPTY( [Customer].[Customer Geography].[Customer].MEMBERS * [Date].[Date].[Date].MEMBERS , [Measures].[Internet Sales Amount] ) AS MYSET -
↧