# should med work on a list of lists?

**URL:** <https://forum.kx.com/t/should-med-work-on-a-list-of-lists/11070>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [June 12, 2016, 12:51am UTC](https://forum.kx.com/t/should-med-work-on-a-list-of-lists/11070 "2016-06-12T00:51:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshmyzie2](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@joshmyzie2](https://forum.kx.com/u/joshmyzie2)\
**Post date:** [June 12, 2016, 12:51am UTC](https://forum.kx.com/t/should-med-work-on-a-list-of-lists/11070/1 "2016-06-12T00:51:00Z")

</div>

avg works fine with a list of lists, but med silently fails. Is itsupposed to handle that case? If not, it would be nice if it threw a’rank error like dev and var do.q)d:0N 2#10000?1fq)med d / 2nd value is wrong0.51032904 0.35386276q)med each flip d / correct values0.51032904 0.49896298q)avg d / both are correct0.50615626 0.49628494q)avg each flip d0.50615626 0.49628494
