Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Average by column

Hi Experts,   How to calculate the average per a certain column    for example, as per the below table end result should be (2+6+9)/3   ColumnA ColumnB X                2 X                2 ...
  • VahidDM's avatar
    5 years ago

    Anonymous 

    try this:

     

    Average distinct = 
    AVERAGEX (DISTINCT('Table'),[ColumnB])

     

    Table : 

     

    Output:

     

    Click here to see more details about DISTINCT.

     

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

    Appreciate your Kudos  !!