According to the book "Microsoft SQL Server 2012 Analysis Services - The BISM Tabular Model" (pages 276 and 277) the following DAX query should work. However, I'll get a rank of 1 returned for every product name. My impression is that ALL doesn't block the context transition for product name. Because there is nothing in the errata, I might do something wrong!? The second query is just a workaround giving the correct result. Maybe someone can help me with the SUMMARIZE version.
EVALUATE
CALCULATETABLE(
SUMMARIZE(
'Internet Sales',
Product[Product Name],
"Sales", [Internet Total Sales],
"Rank", RANKX( ALL(Product[Product Name] ), [Internet Total Sales] )
),
Geography[English Country Region Name] = "United States"
)
ORDER BY [Sales] DESC
GO
EVALUATE
CALCULATETABLE(
ADDCOLUMNS(
DISTINCT(Product[Product Name]),
"Sales", [Internet Total Sales],
"Rank", RANKX( ALL(Product[Product Name] ), [Internet Total Sales] )
),
Geography[English Country Region Name] = "United States"
)
ORDER BY [Sales] DESC
GO