Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Dax Calculation

Hi,

 

I am having trouble writing the calculation below and keep running into errors.

 

(SUM [OH TTL U RTL] WHERE [J RETAIL FH FIRST/FURTHER] = "FIRST" OR "FURTHER")*[OH TTL AUC].

 

 

  • tamerj1's avatar
    tamerj1
    3 years ago

    Anonymous 

    Not sure if I properly understand the requirement. Is something like:

    =
    SUMX (
    FILTER ( 'Table', 'Table'[J RETAIL FH FIRST/FURTHER] IN { "FIRST", "FURTHER" } ),
    [OH TTL U RTL] * [OH TTL AUC]
    )

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thank you that worked for me!

  • tamerj1's avatar
    tamerj1
    Community Champion

    Hi Anonymous 

    are you trying to create a measure or a calculated column? 

    • Anonymous's avatar
      Anonymous
      Not applicable

      A measure

      • tamerj1's avatar
        tamerj1
        Community Champion

        Anonymous 

        Sorry but you mean to say

        (SUM [OH TTL U RTL] WHERE [J RETAIL FH FIRST/FURTHER] = "FIRST" OR "FURTHER")*SUM([OH TTL AUC]).