Forum Discussion

ModernAchilles's avatar
7 years ago
Solved

Simple Filter - Calculating Total Transaction Sales in Calculated Column

Hi,   This Simple Formula isnt working. Anyone have any ideas on how to to get the whole ticket transaction sum in a calculated column?   Thanks!     Ticket Total Sales = calculate([Net Revenu...
  • AlB's avatar
    7 years ago

    Hi ModernAchilles

     

    It's hard to say with the info you provide. You should show the tables in your data model and explain with an example based on your sample data what result you now get (error message? wrong number?) and what you would expect to get.

    What is [Net Revenue], a measure? If so, please do show its code as it might be important to solve the issue.

    I don't know what you mean by the whole ticket transaction sum. Although it's a shot in the dark, try this:

     

     

    Ticket Total Sales =
    CALCULATE (
        [Net Revenue],
        FILTER ( Sales, Sales[transactionid] = EARLIER ( Sales[transactionid] ) )
    )