Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Add Average Function into Summarize

Hi Experts

 

I want the average of a particular column in the following DAX

Summary = filter ( Summarize (Input[Year],Input'[M Column],Average(Input[Addtion]/2), Input[Terms]), Input[Terms] = "BTMT")

 

Adding the Average(Input[Addtion]/2) gives and error.

 

  • Hmm

    can you please try to replace the above with the below?

     

    (input[adition])/2, input[terms]),input[terms]

6 Replies

  • Hi,

    please try the below.

     

    Summary = filter ( Summarize (Input[Year],Input'[M Column], "@newcolumn", Average(Input[Addtion]/2), Input[Terms]), Input[Terms] = "BTMT")

     

    Hi, My name is Jihwan Kim.

    If this post helps, then please consider accept it as the solution to help other members find it faster.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Kim error from this point onwards (Input[Addtion]/2), Input[Terms]), Input[Terms] 

      • Jihwan_Kim's avatar
        Jihwan_Kim
        Super User

        Hmm

        can you please try to replace the above with the below?

         

        (input[adition])/2, input[terms]),input[terms]