<?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: Calculate percentile with filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-percentile-with-filters/m-p/3140962#M112161</link>
    <description>&lt;LI-CODE lang="markup"&gt;PERCENTILE = CALCULATE(PERCENTILE.EXC(Table[Budget],0.8),ALLEXCEPT(Table,Table[Account]))&lt;/LI-CODE&gt;
&lt;P&gt;this would be one option, but it's a rather blunt instrument. You may need to use different filter context manipulations.&lt;/P&gt;</description>
    <pubDate>Sun, 19 Mar 2023 20:29:43 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-03-19T20:29:43Z</dc:date>
    <item>
      <title>Calculate percentile with filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-percentile-with-filters/m-p/3135335#M111714</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have a problem with calculating percentiles filtered based on the value of another column, here's an example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The data that I have is in the left table, I want to add the 'Percentile' column in the same table containing the percentile value of the total budget in the account for that row, so the end result should be like the one in the right. My current formula is as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PERCENTILE = PERCENTILE.EXC(Table[Budget],0.8)&lt;/LI-CODE&gt;&lt;P&gt;Which returns overall percentile of the data instead of it being the percentile of each account. I tried the following formula as well:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PERCENTILE = CALCULATE(PERCENTILE.EXC(Table[Budget],0.8),Table[Account])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Which returns an error because the filter expression returns a string value and cannot be converted into a true/false.&lt;/P&gt;&lt;P&gt;How do I make sure that the percentile value in each row is specific to the percentile value for the account in that row? So any row with the same account will return the same value. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 06:50:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-percentile-with-filters/m-p/3135335#M111714</guid>
      <dc:creator>ilhamfadhillah4</dc:creator>
      <dc:date>2023-03-16T06:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentile with filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-percentile-with-filters/m-p/3140962#M112161</link>
      <description>&lt;LI-CODE lang="markup"&gt;PERCENTILE = CALCULATE(PERCENTILE.EXC(Table[Budget],0.8),ALLEXCEPT(Table,Table[Account]))&lt;/LI-CODE&gt;
&lt;P&gt;this would be one option, but it's a rather blunt instrument. You may need to use different filter context manipulations.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 20:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-percentile-with-filters/m-p/3140962#M112161</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-19T20:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentile with filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-percentile-with-filters/m-p/3141303#M112183</link>
      <description>&lt;P&gt;I just tried that and it works, thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 03:33:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-percentile-with-filters/m-p/3141303#M112183</guid>
      <dc:creator>ilhamfadhillah4</dc:creator>
      <dc:date>2023-03-20T03:33:06Z</dc:date>
    </item>
  </channel>
</rss>

