IF in DAX works very similarly to IF in Excel formulas.

In this list we are going to distinguish cheap and expensive books – when the limit is 300: