I know that only CALCULATE can modify the filter context. However following are 2 example using VALUES and ALL.
Example 1:
Revenue = SUMX( Sales, Sales[Order Quantity] * Sales[Unit Price] )
Revenue Avg Order =
AVERAGEX(
VALUES('Sales Order'[Sales Order]),
[Revenue]
)
What is the purpose of VALUES in AVERAGEX function? Is this to add an additional filter context?
Example 2:
Product Quantity Rank = RANKX( ALL('Product'[Product]), [Quantity] )
What is the purpose of using ALL in an iterator function?