Forum Discussion

Greg_Deckler's avatar
Greg_Deckler
Icon for Community Champion rankCommunity Champion
9 years ago
Solved

StdDev from Mean by Category

OK, been working with school data and can't seem to wrap my head around one particular issue so hopefully someone can help out.   Basically, what I want to do is to calculate how many standard devi...
  • Greg_Deckler's avatar
    Greg_Deckler
    9 years ago

    Thanks for the suggestion v-haibl-msft. I actually solved this over the weekend a different way but I'll see if I can find the time to go back and try that method. What I ended up doing was merging my three tables into a single table and then wrapping the calculation of the average in a CALCULATE statement with an ALLEXCEPT clause that included the two categories that I wanted to factor into the calculation dynamically. Worked as expected once the data was all in a single table. You can actually see the end result here in the Data Stories Gallery:

     

    http://community.powerbi.com/t5/Data-Stories-Gallery/Ohio-Primary-and-Secondary-Education-Performance/td-p/74155

     

    I just published it last night. Thanks again KGrice for taking a look at this also.