With DMR you shouldn't need to do any sort of If statement at all.
Just add a crosstab to the page,
Put contract in the left section, put category in the top and measure as the measure and it will give you what you want.
Just add a crosstab to the page,
Put contract in the left section, put category in the top and measure as the measure and it will give you what you want.