I am not sure if this is the approach I should use. I do not want to have a user put in a parameter. The first thing I want to do is to create a field named "New Campaign". I have 2 fields that I want to look at: Campaign and Lead Campaign. The If statement would be Iif(Lead Campaign = "Routing Campaign", Campaign, Lead Campaign). The other thing I want to do is count the number of ids in a field named payment type. If the id is "1" then it is cash, if it is "2" then it is credit card. I want a field for each and the count. I am doing a group by on the "New Campaign"