<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Help with VALUES() in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-VALUES/m-p/2149088#M49490</link>
    <description>&lt;P&gt;I am still very green in DAX. I simply want to find the median value of the distinct elements in a column. I tried to write this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEDIAN(VALUES(Table[Column]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error says that MEDIAN() only accepts a column reference. How do I tell it that the result of VALUES() is a single column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amon&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 21:45:10 GMT</pubDate>
    <dc:creator>aseagull</dc:creator>
    <dc:date>2021-10-21T21:45:10Z</dc:date>
    <item>
      <title>Help with VALUES()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-VALUES/m-p/2149088#M49490</link>
      <description>&lt;P&gt;I am still very green in DAX. I simply want to find the median value of the distinct elements in a column. I tried to write this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEDIAN(VALUES(Table[Column]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error says that MEDIAN() only accepts a column reference. How do I tell it that the result of VALUES() is a single column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amon&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 21:45:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-VALUES/m-p/2149088#M49490</guid>
      <dc:creator>aseagull</dc:creator>
      <dc:date>2021-10-21T21:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with VALUES()</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-VALUES/m-p/2149119#M49491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="242018" data-lia-user-login="aseagull" class="lia-mention lia-mention-user"&gt;aseagull&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to use&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dax/medianx-function-dax" target="_self"&gt;MEDIANX&lt;/A&gt; rather than&amp;nbsp;&lt;SPAN&gt;MEDIAN:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MEDIANX(VALUES(Table[Column]),Table[Column]))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 22:03:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-VALUES/m-p/2149119#M49491</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-10-21T22:03:30Z</dc:date>
    </item>
  </channel>
</rss>

