Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

RE: Summing Of Values From The Same Column In A Table

    Dear all, How can I add all of the values belonging in the, "MFT COMBINED" column before I find the mean value of it?   I would appreciate any assistance that is given.
  • v-jingzhang's avatar
    v-jingzhang
    3 years ago

    Hi Anonymous 

     

    You can replace #"Previous Step" in latimeria 's code with the last step name from Applied Steps pane of the query. For example, in the following image, the last step is "Added Custom2". It is added after its previous step "Removed Columns3". So you can find "Removed Columns3" in its step code in the formula bar. If you want to add a step after "Added Custom2", you can right click on "Added Custom2" and select Insert Step After option. Then paste below code in the formula bar to get the mean value in a new column.  

    Table.AddColumn(#"Added Custom2", "Custom", each List.Average(#"Added Custom2"[MFT COMBINED]))

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it.