<?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 group by columns for PERCENTILE functions? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-columns-for-PERCENTILE-functions/m-p/1314842#M23053</link>
    <description>Sorry, I don't get the description. Maybe others will...</description>
    <pubDate>Fri, 21 Aug 2020 13:24:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-21T13:24:36Z</dc:date>
    <item>
      <title>How to group by columns for PERCENTILE functions?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-columns-for-PERCENTILE-functions/m-p/1311544#M22903</link>
      <description>&lt;P&gt;I have a CALULATETABLE inside which I use a SUMMARIZE function to group employees and their respective performance metrics aggregated like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Employee&lt;/TD&gt;&lt;TD&gt;Metric_1&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Metric_2&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Metric_3&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;73&lt;/TD&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;56&lt;/TD&gt;&lt;TD&gt;35&lt;/TD&gt;&lt;TD&gt;87&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The date range of this calculation by default is a rolling 45, which I define within the summarize function. After which, I use PERCENTILE functions to see which of the employees are in the top 25,50,75 brackets for each metric. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Bottom 25%_Metric 1 = CALCULATE(PERCENTILE.INC(Quartile[Metric 1],0.25), ALL(Quartile))&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My new requirement is, I need to include dates into this table, as we want to see how employees have performed over different date ranges, instead of a flat rolling 45. When I attempt to do this, my table looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Employee&lt;/TD&gt;&lt;TD&gt;Metric_1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Metric_2&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Metric_3&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Date&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8/19/2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8/20/2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is, when I feed Metric 1, 2 and 3 into PERCENTILE, it doesn't allow me to group the column data ignoring the date, but rather it calculates the day to day as the percentile. Is there a way to get around this? Or if there are other ways to do this, it would be really helpful. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 14:43:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-columns-for-PERCENTILE-functions/m-p/1311544#M22903</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-20T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to group by columns for PERCENTILE functions?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-columns-for-PERCENTILE-functions/m-p/1314842#M23053</link>
      <description>Sorry, I don't get the description. Maybe others will...</description>
      <pubDate>Fri, 21 Aug 2020 13:24:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-columns-for-PERCENTILE-functions/m-p/1314842#M23053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-21T13:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to group by columns for PERCENTILE functions?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-columns-for-PERCENTILE-functions/m-p/1314857#M23057</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried adding all date in your formula?(see below)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Bottom 25%_Metric 1 = CALCULATE(PERCENTILE.INC(Quartile[Metric 1],0.25), ALL(Quartile), ALL(Date))&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 13:29:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-by-columns-for-PERCENTILE-functions/m-p/1314857#M23057</guid>
      <dc:creator>saraMissBI</dc:creator>
      <dc:date>2020-08-21T13:29:11Z</dc:date>
    </item>
  </channel>
</rss>

