<?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 dax find 75/95/99 percentile and return  value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-find-75-95-99-percentile-and-return-value/m-p/3205701#M116748</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i have an issue with Percentile/inc and exc calculations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My fact table contains of ProductName, ProjectName and Timing(seconds)&lt;/P&gt;&lt;P&gt;i need to find 75th 90th 99th timing percentiles for each ProductName. The problem with Percentile.INC/EXC formula is with odd combinations. For example i have 183 rows of 9029T&amp;nbsp;ProductName for One ProjectName, the 99th percentile is 181,17 sorted row number. Dax percentile function returns me calculated Timing(seconds) somehow ine between 181 and 182 row. But i would need to round odds and return Timings(seconds) matching exactly a value from 181 row&lt;/P&gt;&lt;P&gt;How could i do it?&lt;/P&gt;&lt;P&gt;so far i made a measure&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MsrRowNo99th=CALCULATE(ROUND(COUNTROWS(FtblProd)-1)*99/100+1,0))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;it returns me the row number from sorted table i would need to return&amp;nbsp;&lt;/P&gt;&lt;P&gt;calculatedColumn&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CCRankTiming= &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var ProductNames =&amp;nbsp;FtblProd[ProductName]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var ProjectNames =&amp;nbsp;FtblProd[ProjectName]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RANKX(Filter(FtblProd,FtblProd[ProductName]=ProductNames &amp;amp;&amp;amp; FtblProd[ProjectName]=ProjectNames),FtblProd[Timing(seconds)],,ASC))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;checked it and it shows me good ranking for my Timing&lt;/P&gt;&lt;P&gt;and as a third step added my last measure&lt;/P&gt;&lt;P&gt;MsrReturn99thT=MAXX(FILTER(&lt;EM&gt;FtblProd),CCRankTiming=MsrRowNo99th),FtblProd[Timing(seconds)])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and that one return me an error...maybe instead of filter i should pass virtual table with productname and projectname&lt;/P&gt;&lt;P&gt;Could anyone help? maybe all these steps can be done within one measure for each percentile?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 19:10:12 GMT</pubDate>
    <dc:creator>MattReckoner</dc:creator>
    <dc:date>2023-04-25T19:10:12Z</dc:date>
    <item>
      <title>dax find 75/95/99 percentile and return  value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-find-75-95-99-percentile-and-return-value/m-p/3205701#M116748</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i have an issue with Percentile/inc and exc calculations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My fact table contains of ProductName, ProjectName and Timing(seconds)&lt;/P&gt;&lt;P&gt;i need to find 75th 90th 99th timing percentiles for each ProductName. The problem with Percentile.INC/EXC formula is with odd combinations. For example i have 183 rows of 9029T&amp;nbsp;ProductName for One ProjectName, the 99th percentile is 181,17 sorted row number. Dax percentile function returns me calculated Timing(seconds) somehow ine between 181 and 182 row. But i would need to round odds and return Timings(seconds) matching exactly a value from 181 row&lt;/P&gt;&lt;P&gt;How could i do it?&lt;/P&gt;&lt;P&gt;so far i made a measure&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MsrRowNo99th=CALCULATE(ROUND(COUNTROWS(FtblProd)-1)*99/100+1,0))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;it returns me the row number from sorted table i would need to return&amp;nbsp;&lt;/P&gt;&lt;P&gt;calculatedColumn&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CCRankTiming= &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var ProductNames =&amp;nbsp;FtblProd[ProductName]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var ProjectNames =&amp;nbsp;FtblProd[ProjectName]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;return&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RANKX(Filter(FtblProd,FtblProd[ProductName]=ProductNames &amp;amp;&amp;amp; FtblProd[ProjectName]=ProjectNames),FtblProd[Timing(seconds)],,ASC))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;checked it and it shows me good ranking for my Timing&lt;/P&gt;&lt;P&gt;and as a third step added my last measure&lt;/P&gt;&lt;P&gt;MsrReturn99thT=MAXX(FILTER(&lt;EM&gt;FtblProd),CCRankTiming=MsrRowNo99th),FtblProd[Timing(seconds)])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and that one return me an error...maybe instead of filter i should pass virtual table with productname and projectname&lt;/P&gt;&lt;P&gt;Could anyone help? maybe all these steps can be done within one measure for each percentile?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 19:10:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-find-75-95-99-percentile-and-return-value/m-p/3205701#M116748</guid>
      <dc:creator>MattReckoner</dc:creator>
      <dc:date>2023-04-25T19:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: dax find 75/95/99 percentile and return  value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-find-75-95-99-percentile-and-return-value/m-p/3261800#M120665</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="458152" data-lia-user-login="MattReckoner" class="lia-mention lia-mention-user"&gt;MattReckoner&lt;/a&gt;&amp;nbsp; check link with video for Percentile function in DAX. I hope this help.&lt;/P&gt;&lt;P&gt;&lt;A href="https://dax.guide/percentile-exc/" target="_self"&gt;https://dax.guide/percentile-exc/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 12:07:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-find-75-95-99-percentile-and-return-value/m-p/3261800#M120665</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-05-31T12:07:35Z</dc:date>
    </item>
  </channel>
</rss>

