<?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: Calculating median of time by group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2232917#M53301</link>
    <description>&lt;P&gt;My understanding is it should work if you just use it in a measure? Have you tried that?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Dec 2021 16:23:43 GMT</pubDate>
    <dc:creator>bcdobbs</dc:creator>
    <dc:date>2021-12-10T16:23:43Z</dc:date>
    <item>
      <title>Calculating median of time by group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2232769#M53287</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im having trouble in calculating the median of a column in my proyect. I can't get it to work (no result).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, the thing it's like this.&lt;/P&gt;&lt;P&gt;I have 2 tables, one it's a calendar table and the other one it's my data table. They have a one to many relation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the median of a column, group by date (month date) like i have my other measures, but i cant get it to work.&lt;/P&gt;&lt;P&gt;The values that i want to get the median, are expresed in seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what i want should be something like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And it should be able to filter by Consulta1[CANAL]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried creating a measure in many ways,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;median (time_total) = MEDIAN(tablaPortabilidades[TPO_TOTAL])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;median (time_total) = MEDIANX(tablaPortabilidades, tablaPortabilidades[TPO_ACEPT])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried creating a measure that sums [TPO_ACEPT] and then creating a median of this sum, but same result.&lt;/P&gt;&lt;P&gt;The result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone give me a hand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to upload my .pbix here so i upload it to my drive.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1eItPF_sWVjhnD2LOdnxOweNHycB3yANh/view?usp=sharing" target="_self"&gt;.pbix&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the data was imported, but im usind a direct query connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pd: In the pbix the Consulta1 is the same as tablaPortabilidades&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 15:38:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2232769#M53287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-10T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median of time by group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2232831#M53295</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;Are you creating it as a measure? If so your dax is ok and seems to work with the demo you sent:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here the measure has just been dropped into the values box of the matrix.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The only thing I can think is you might be trying to create a calculated column? If so MEDIAN isn't supported over direct query&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/dax/median-function-dax" target="_blank"&gt;MEDIAN function (DAX) - DAX | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 15:47:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2232831#M53295</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2021-12-10T15:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median of time by group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2232867#M53299</link>
      <description>&lt;P&gt;I supposed it was something related with direct query. Is there a way to something like this with direct query? I can't import the whole data set because it's huge.&lt;/P&gt;&lt;P&gt;I tried doing it on sql but then i can't filter it.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 16:02:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2232867#M53299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-10T16:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median of time by group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2232917#M53301</link>
      <description>&lt;P&gt;My understanding is it should work if you just use it in a measure? Have you tried that?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 16:23:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2232917#M53301</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2021-12-10T16:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median of time by group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2233017#M53310</link>
      <description>&lt;P&gt;Yes, it actually works but only if a import the data. My issue is that i have to work with direct query, yes or yes. So, im looking for a way of doing the same but with direct q.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 17:31:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2233017#M53310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-10T17:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median of time by group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2233086#M53315</link>
      <description>&lt;P&gt;Can you expand the error details on the visual and send it over?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've just setup an example using direct query to contoso in SQL and can make a MEDIAN measure work so wondering if there is another issue.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 18:11:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-median-of-time-by-group/m-p/2233086#M53315</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2021-12-10T18:11:14Z</dc:date>
    </item>
  </channel>
</rss>

