Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How To Get Average Which Exclude Repeat Value?

I encountered one problem about average, as below:

  table is listed by WeekNum, so repeated month No. will be shown, then when calcuate average by month, it will be error.

  any solution to exclude this?  thanks a lot!

WeekMonthData   
WK01111 average Should Be 
WK02111 11.5 
WK03111   
WK04212 But, actually 
WK05212 11.4 
      
  • Anonymous 

    Try as measure

    avergageX(summarize(table,table[Data]),[Data])

    or
    avergageX(summarize(table,table[Month],table[Data]),[Data])

1 Reply

  • Anonymous 

    Try as measure

    avergageX(summarize(table,table[Data]),[Data])

    or
    avergageX(summarize(table,table[Month],table[Data]),[Data])