<?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 Re: How to calculate median in Direct Query in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-calculate-median-in-Direct-Query/m-p/832379#M12015</link>
    <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In such case you need to calculate median in data source or do it in direct query, so it all depends on what data source you have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T-SQL, for example, does not have median calculation function, AFAIK, so, you need to calculate it "manually".&lt;/P&gt;&lt;P&gt;Here is some explanation on how to to it and code example, maybe this helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codingsight.com/calculate-the-median-by-using-tsql/" target="_blank"&gt;https://codingsight.com/calculate-the-median-by-using-tsql/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2019 09:21:51 GMT</pubDate>
    <dc:creator>andris</dc:creator>
    <dc:date>2019-10-30T09:21:51Z</dc:date>
    <item>
      <title>How to calculate median in Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-calculate-median-in-Direct-Query/m-p/830218#M11990</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I need to calculate the median of a column but i'm accessing data trough Direct Query so the median function is inaccessible.&lt;/P&gt;&lt;P&gt;Is there any other way to calculate it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:57:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-calculate-median-in-Direct-Query/m-p/830218#M11990</guid>
      <dc:creator>d0rthv0der</dc:creator>
      <dc:date>2019-10-28T15:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate median in Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-calculate-median-in-Direct-Query/m-p/832379#M12015</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In such case you need to calculate median in data source or do it in direct query, so it all depends on what data source you have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T-SQL, for example, does not have median calculation function, AFAIK, so, you need to calculate it "manually".&lt;/P&gt;&lt;P&gt;Here is some explanation on how to to it and code example, maybe this helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codingsight.com/calculate-the-median-by-using-tsql/" target="_blank"&gt;https://codingsight.com/calculate-the-median-by-using-tsql/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 09:21:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-calculate-median-in-Direct-Query/m-p/832379#M12015</guid>
      <dc:creator>andris</dc:creator>
      <dc:date>2019-10-30T09:21:51Z</dc:date>
    </item>
  </channel>
</rss>

