<?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: Solved: Showing Percentile of group in column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2923929#M95957</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476106" data-lia-user-login="PowerBIUserX" class="lia-mention lia-mention-user"&gt;PowerBIUserX&lt;/a&gt; , is it Percentile&amp;nbsp; or Avg &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like a new column&lt;/P&gt;
&lt;P&gt;Avg Group 1&amp;nbsp; = averagex(Filter(Table,[Group 1] = earlier([Group1]) ), [Value])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Avg Group 2&amp;nbsp; = averagex(Filter(Table,[Group 2] = earlier([Group2]) ), [Value])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can diff in new columns&lt;/P&gt;</description>
    <pubDate>Wed, 23 Nov 2022 09:20:30 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-11-23T09:20:30Z</dc:date>
    <item>
      <title>Solved: Showing Percentile of group in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2923680#M95940</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- First 3 columns are data,&lt;/P&gt;&lt;P&gt;- Percentile columns are what I'm trying to calculate. The calculation below is the median for the corresponding group - but I would like to be able to replicate for any percentile.&lt;/P&gt;&lt;P&gt;- The last column is the end goal, comparing if a data point is below, same, or above the percentile of the group.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;How can I create the percentile and comparison columns in PowerBI, using metrics/columns. Do I need to create a calculated table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 08:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2923680#M95940</guid>
      <dc:creator>PowerBIUserX</dc:creator>
      <dc:date>2022-11-24T08:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: Showing Percentile of group in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2923929#M95957</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476106" data-lia-user-login="PowerBIUserX" class="lia-mention lia-mention-user"&gt;PowerBIUserX&lt;/a&gt; , is it Percentile&amp;nbsp; or Avg &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;like a new column&lt;/P&gt;
&lt;P&gt;Avg Group 1&amp;nbsp; = averagex(Filter(Table,[Group 1] = earlier([Group1]) ), [Value])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Avg Group 2&amp;nbsp; = averagex(Filter(Table,[Group 2] = earlier([Group2]) ), [Value])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can diff in new columns&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 09:20:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2923929#M95957</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-23T09:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: Showing Percentile of group in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2926032#M96122</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476106" data-lia-user-login="PowerBIUserX" class="lia-mention lia-mention-user"&gt;PowerBIUserX&lt;/a&gt;&amp;nbsp;,&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;&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>Thu, 24 Nov 2022 06:06:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2926032#M96122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-24T06:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: Showing Percentile of group in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2926300#M96136</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you, this is indeed the calculation I'm looking for. I've updated the table to reflect the correct numbers.&lt;/P&gt;&lt;P&gt;What is the calculations/DAX you used?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 07:56:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2926300#M96136</guid>
      <dc:creator>PowerBIUserX</dc:creator>
      <dc:date>2022-11-24T07:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: Showing Percentile of group in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2926378#M96144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="476106" data-lia-user-login="PowerBIUserX" class="lia-mention lia-mention-user"&gt;PowerBIUserX&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create two measeures,the codes are as follows,&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Me-group1 = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MEDIAN&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Value]),'Table'[Group1]=&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Group1]),&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Table'))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Me-group2 = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;median&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Value]),'Table'[Group2]=&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Group2]),&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Table'))&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 08:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2926378#M96144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-24T08:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Solved: Showing Percentile of group in column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2926382#M96145</link>
      <description>&lt;P&gt;Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 08:21:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Solved-Showing-Percentile-of-group-in-column/m-p/2926382#M96145</guid>
      <dc:creator>PowerBIUserX</dc:creator>
      <dc:date>2022-11-24T08:21:28Z</dc:date>
    </item>
  </channel>
</rss>

