Forum Discussion

wcd1213's avatar
wcd1213
Frequent Visitor
3 years ago
Solved

Using ALLEXCEPT on calculated table

Hello All,

I have a summarization table that pulls from two different tables in my report. I would like to get the average from other columns split up by name. 

For example I would like to populate the new column I created with the averages of M1 split up by Will. The values that I am gettting are the same for every name. 

 

Any help is appreciated. 

  • Hi wcd1213 ,

    According to your description, here's my solution. Create a calculated column.

    Column =
    AVERAGEX (
        FILTER (
            'Calculated Table',
            'Calculated Table'[Name] = EARLIER ( 'Calculated Table'[Name] )
        ),
        [M1]
    )
    

     

    Best Regards,
    Community Support Team _ kalyj

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

7 Replies

  • Hi wcd1213 ,

    According to your description, here's my solution. Create a calculated column.

    Column =
    AVERAGEX (
        FILTER (
            'Calculated Table',
            'Calculated Table'[Name] = EARLIER ( 'Calculated Table'[Name] )
        ),
        [M1]
    )
    

     

    Best Regards,
    Community Support Team _ kalyj

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

    • wcd1213's avatar
      wcd1213
      Frequent Visitor

      Hi v-yanjiang-msft

      Thank you for the reply.

      I tested this expression and the column is not averaging by name. Is there something else I can add to the formula to acheive this?

       

      • v-yanjiang-msft's avatar
        v-yanjiang-msft
        Community Support

        Hi wcd1213 ,

        I create a sample and it averages by name as expected.

        Do you have some difference with me?

         

        I attach my sample below for your reference.

         

        Best Regards,
        Community Support Team _ kalyj

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.