<?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: Percentile Column with group by in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926602#M96166</link>
    <description>&lt;P&gt;don't understand the percentile here, could you explain the calculation behind?&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 09:24:44 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2022-11-24T09:24:44Z</dc:date>
    <item>
      <title>Percentile Column with group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926277#M96133</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I have one table as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Col1 Col2 Value Percentile
Test John  100     0.0
Test John  200     0.0
Test John  300     0.0
Test John  100     0.1
Test John  200     0.1
Test John  300     0.1
Test John  100     1.00
Test John  200     1.00
Test John  300     1.00&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Percentile column is the range to calculate percentile with range from 0.0 to 1.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to calculate percentile based on two column 'Value' and 'Percentile' and group by Col1, Col2, Percentile.&lt;BR /&gt;I want to have new table like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Col1 Col2 Percentile   Percentile_Value
Test John  0.0          100
Test John  0.1          100
Test John  1.0          300&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any helps will be appriciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2/ Or with this table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Col1 Col2 Value
Test John  100
Test John  200
Test John  300&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I calculate Percentile (group by Col1, Col2) with range from 0 to 1 (0.0, 0.1, 0.2.... 0.98, 0.99, 1.00)?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 09:40:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926277#M96133</guid>
      <dc:creator>AlanPhan</dc:creator>
      <dc:date>2022-11-24T09:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile Column with group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926602#M96166</link>
      <description>&lt;P&gt;don't understand the percentile here, could you explain the calculation behind?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 09:24:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926602#M96166</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-24T09:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile Column with group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926627#M96169</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;I updated post again. Also, please see the note 2/ that I mentioned below. It's easy to understand.&amp;nbsp;&lt;BR /&gt;Please advise.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 09:35:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926627#M96169</guid>
      <dc:creator>AlanPhan</dc:creator>
      <dc:date>2022-11-24T09:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile Column with group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926699#M96174</link>
      <description>&lt;P&gt;&lt;SPAN&gt;AlanPhan, i think you should create a rank column based on value and percentile column and filter the data accordingly.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nikhil Chenna&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 09:52:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926699#M96174</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-24T09:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile Column with group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926746#M96180</link>
      <description>&lt;P&gt;could you have a sample for this? I tried to create 2 table (Percentile with Value column, data from 0 to 1), and table need to be calculated. But it seems difficult to implement.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 10:01:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926746#M96180</guid>
      <dc:creator>AlanPhan</dc:creator>
      <dc:date>2022-11-24T10:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile Column with group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926811#M96185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476690" data-lia-user-login="AlanPhan" class="lia-mention lia-mention-user"&gt;AlanPhan&lt;/a&gt;&amp;nbsp;, right now i do not have an example to show you.&amp;nbsp;&lt;BR /&gt;But you can check for Rankeq funtion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nikhil Chenna&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 10:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2926811#M96185</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-24T10:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile Column with group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2928330#M96267</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476690" data-lia-user-login="AlanPhan" class="lia-mention lia-mention-user"&gt;AlanPhan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;&amp;nbsp;Maybe you can create a new measure in the table , the code is as follows:&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;Measure 2 = CALCULATE(PERCENTILE.INC('Table'[value],SELECTEDVALUE('Table'[Percentile])),'Table'[Percentile]=SELECTEDVALUE('Table'[Percentile]),ALL('Table'))&lt;/P&gt;
&lt;P&gt;))&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;&amp;nbsp;&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Then add a ‘Table’ &amp;nbsp;visual and put ‘col1’ ‘col2’ ‘percentile’ fields and measure2 to the table, the output is as follows:&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;&amp;nbsp;&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;This is the median I calculated for each group, whether it meets your needs, I found that the median calculated by the second group is different from the result in the picture you provided, could you provide the calculation logic?&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Yolo Zhu&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 02:53:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2928330#M96267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-25T02:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile Column with group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2928378#M96271</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I want to have a table as above, with each row will have 100 point (range from 0 to 1) for 'Value' array, so that I can show on the chart.&lt;/P&gt;&lt;P&gt;With your result, how can I show to line chart with enough 100 point?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 03:22:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2928378#M96271</guid>
      <dc:creator>AlanPhan</dc:creator>
      <dc:date>2022-11-25T03:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile Column with group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2928552#M96280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476690" data-lia-user-login="AlanPhan" class="lia-mention lia-mention-user"&gt;AlanPhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What you describe is a bit abstract, is there a similar graphic description?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&lt;SUP&gt;Yolo Zhu&lt;/SUP&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 05:43:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2928552#M96280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-25T05:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Percentile Column with group by</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2933351#M96559</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see the line chart as below, I want to have 100 points for each percentile (range from 0 to 1). Is it possible?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 15:35:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentile-Column-with-group-by/m-p/2933351#M96559</guid>
      <dc:creator>AlanPhan</dc:creator>
      <dc:date>2022-11-28T15:35:15Z</dc:date>
    </item>
  </channel>
</rss>

