This topic contains 2 replies, has 0 voices, and was last updated by JeanF 15 years, 3 months ago.

  • Author
    Posts
  • #8158

    JeanF

    I’m creating a report that groups invoices according to the (Income) Account. However, I have some items where I have an old account (BT Deferred Revenue Account) and I want to group together with a newer account.

    I’ve created a text formula field with the following but I just get invalid expression.

    CASE WHEN account=”BT Deferred Revenue Account” THEN “4010: Sales BT Websites” ELSE account END

    I’ve tried with single quotes and double quotes and no quotes.

    I then wanted to be able to group on this formula field.

    Thanks for advice, Jean
    This is a cached copy. Click here to see the original post.

  • #8159

    Olivier Gagnon NC

    RE: CASE WHEN syntax help please

    CASE WHEN {account}=’BT Deferred Revenue Account’ THEN ‘4010: Sales BT Websites’ ELSE {account} END

  • #8160

    JeanF

    RE: CASE WHEN syntax help please

    Of course. Should have known that. Thanks very much!

You must be logged in to reply to this topic.