Search This on YouTube -- TDL Tally Solutions Just assume that I said you Buy 2 GB Ram If price is less than 200 else buy 4 GB Ram The same logic you have to use in this case If @@IsSales Then "Sales Value" Else If @@IsPurchase Then "Purchase Value" Else "" Important: "": means blank or Nothing Try to observe code