A mixed set from the advanced DAX unit: ranking, top N, variables, iterators, calculated tables and running totals. Each one hides an edge case: a total row that should be blank, a variable that keeps its context, a running total that must not reset.
Read the hints only when you need them; the error messages already tell you what to look at.