Calculating Median in PowerPivot using DAX

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

I just came across this blog post by Bill Anton where he discusses several approaches to calculated the Median of a given set in T-SQL, MDX and DAX. In the end of his post when it comes to the DAX calculation, he references several post by Marco, Alberto and Javier (post1, post2) that already address that kind of calculation in DAX. But he also claims that non of the solutions is "elegant". Well, reason enough for me to try it on my own and here is what I came up with. Its up to you to decide whether this solution is more elegant than the others or not :)



Tags: dax


2007-2015 VidasSoft Systems Inc.