Forum Discussion

ffunky's avatar
ffunky
Helper I
7 years ago
Solved

column total average vs row total

Hi all,   I have rates of sale by week and store, and I'm trying to get the column total to show an average, like the row totals do, but the column seems to only sum up the totals.  It's driving me...
  • v-yulgu-msft's avatar
    v-yulgu-msft
    7 years ago

    Hi ffunky ,

     

    Please refer to this measure.

    Average Qty = AVERAGEX(SALES_WEEKLY,CALCULATE(SUM(SALES_WEEKLY[Null_Qty])))

    Best regards,

    Yuliana Gu

  • ffunky's avatar
    ffunky
    7 years ago

    A collegue here was able to find the solution to this.

     

    Measure = AVERAGEX(

                ADDCOLUMNS(                SUMMARIZE(SALES_WEEKLY,SALES_WEEKLY[STORE_NBR],SALES_WEEKLY[YR_WK_NBR]),"Test",CALCULATE(SUM(SALES_WEEKLY[Null_Qty]))),[Test])