<?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: Controlling filters in percentile calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3995212#M155174</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;,thanks for your quick reply, I will add more.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="374892" data-lia-user-login="Kaii" class="lia-mention lia-mention-user"&gt;Kaii&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Use the following DAX expression to create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(PERCENTILEX.INC('Table',[VALUE],0.5),ALL('Table'[subject]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;_Value = SUM('Table'[VALUE])&lt;/LI-CODE&gt;
&lt;P&gt;Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 02:59:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-17T02:59:34Z</dc:date>
    <item>
      <title>Controlling filters in percentile calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3994047#M155057</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have this measure, I need the percentile lines to stay&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;constant&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;even if we select another "subject", so we can see if a subject falls above/below certain constant percentile values.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Measure = 
VAR _ATABLE = 
    SUMMARIZE(
        ALL('Table'[Company]),
        'Table'[Company],
        "VALUE", SUM('Table'[VALUE])
    )
RETURN
CALCULATE(
    PERCENTILEX.INC(_ATABLE, [VALUE], 0.5)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure which part I am doing wrong, this measure doesnt&amp;nbsp;work properly with the "Type" filter which within the same table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as you can see when " Bird" Been selected. the precentile measure return as "Blank" .&amp;nbsp;&lt;BR /&gt;This is how my table looks like&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could anyone help me figure out why?&lt;BR /&gt;Thank you very much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 00:29:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3994047#M155057</guid>
      <dc:creator>Kaii</dc:creator>
      <dc:date>2024-06-15T00:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling filters in percentile calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3994164#M155074</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="374892" data-lia-user-login="Kaii" class="lia-mention lia-mention-user"&gt;Kaii&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't know i fully getting you or not&lt;BR /&gt;&lt;BR /&gt;But try to add&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Filter(All(Table[type]),true())&amp;nbsp;&lt;/STRONG&gt; TO your calculate part&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _ATABLE = 
    SUMMARIZE(
        ALL('Table'[Company]),
        'Table'[Company],
        "VALUE", SUM('Table'[VALUE])
    )
RETURN
CALCULATE(
    PERCENTILEX.INC(_ATABLE, [VALUE], 0.5),
    Filter(All(Table[type]),true())
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;Dangar&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 07:11:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3994164#M155074</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-06-15T07:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling filters in percentile calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3994538#M155115</link>
      <description>&lt;P&gt;Hey, the measure doesn't work&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;BR /&gt;Whta im look for is ignore the "subject" filter but still filter on "Type".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 23:04:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3994538#M155115</guid>
      <dc:creator>Kaii</dc:creator>
      <dc:date>2024-06-15T23:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling filters in percentile calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3994650#M155120</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="374892" data-lia-user-login="Kaii" class="lia-mention lia-mention-user"&gt;Kaii&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR _ATABLE =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; SUMMARIZE(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ALL('Table'[Company]),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Table'[Company],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "VALUE", SUM('Table'[VALUE])&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; PERCENTILEX.INC(_ATABLE, [VALUE], 0.5),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Filter(All(Table[Subject]),true())&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 05:20:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3994650#M155120</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-06-16T05:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling filters in percentile calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3994685#M155125</link>
      <description>&lt;P&gt;Hey, thanks for the reply. But it still not working properly,&lt;BR /&gt;when I select "Bird" the measure should return as "4" but it returns as blank.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 06:30:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3994685#M155125</guid>
      <dc:creator>Kaii</dc:creator>
      <dc:date>2024-06-16T06:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling filters in percentile calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3995212#M155174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;,thanks for your quick reply, I will add more.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="374892" data-lia-user-login="Kaii" class="lia-mention lia-mention-user"&gt;Kaii&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Use the following DAX expression to create a measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(PERCENTILEX.INC('Table',[VALUE],0.5),ALL('Table'[subject]))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;_Value = SUM('Table'[VALUE])&lt;/LI-CODE&gt;
&lt;P&gt;Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 02:59:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3995212#M155174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-17T02:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling filters in percentile calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3996822#M155370</link>
      <description>&lt;P&gt;Hey , Thanks for the reply,&amp;nbsp;&lt;BR /&gt;Your measure works almost perfectly.....&lt;BR /&gt;it works very well when one Type has been selected, but if you didn't select any type. the numbers are not right.&lt;BR /&gt;For example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I did not select anything, the 50%th line should return as (20+23)/2 =21.5 but it returns as 15 which is the the 50%th number without aggregation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Do you know any way we can fix this?&lt;BR /&gt;Thank you so Much&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 19:37:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3996822#M155370</guid>
      <dc:creator>Kaii</dc:creator>
      <dc:date>2024-06-17T19:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling filters in percentile calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3997211#M155420</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="374892" data-lia-user-login="Kaii" class="lia-mention lia-mention-user"&gt;Kaii&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1.Use the following DAX expression to create a table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = SUMMARIZE('Table',[subject],"VALUE",SUM('Table'[VALUE]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.Use the following DAX expression to create a measure&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
IF(NOT ISFILTERED('Table'[Type]),
PERCENTILEX.INC('Table 2',[VALUE],0.5),
CALCULATE(PERCENTILEX.INC('Table',[VALUE],0.5),ALL('Table'[subject])))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.Final output&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;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 02:28:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Controlling-filters-in-percentile-calculation/m-p/3997211#M155420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-18T02:28:25Z</dc:date>
    </item>
  </channel>
</rss>

