<?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: Need help to calculate average resolution time which excludes top and bottom 1% of values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2813866#M89151</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/TRIMMEAN/m-p/1074075#M504" target="_blank"&gt;TRIMMEAN - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 12:14:19 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-10-03T12:14:19Z</dc:date>
    <item>
      <title>Need help to calculate average resolution time which excludes top and bottom 1% of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2813853#M89149</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all,&lt;BR /&gt;I need to calculate average of resolution time which should exclude 1% extreme values means top and bottom 1% values.&lt;BR /&gt;Average of resolution time= (Resolved On Date - Created on Date) divided by total number of ticket count&lt;BR /&gt;So if I have 1000 resolved ticket , we should exclude the 10 tickets that have the shortest resolution time and the 10 tickets that have the longest resolution time.&lt;BR /&gt;&lt;BR /&gt;I have tried using RANKX function to calculate top and bottom rank on resolution time(difference between resolved and created) but not able to get it right and also, how do I combine both top and bottom in final query.&lt;BR /&gt;&lt;BR /&gt;TopRANK = RANKX (table,table[ResolutionTimeInHr])&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BottomRANK = &lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt; (table,table[ResolutionTimeInHr],,&lt;/SPAN&gt;&lt;SPAN&gt;ASC&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Top 1% =&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; top_find_rank=&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt; (Table) * &lt;/SPAN&gt;&lt;SPAN&gt;0.01&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;RETURN COUNTROWS(FILTER(Table,Table[TopRank]&amp;lt;=top_find_rank))&lt;BR /&gt;&lt;BR /&gt;I see one more issue with Rank here is when I apply date filter then also the rank value is static. it should change dynamically as and when we choose date slicer&lt;BR /&gt;&lt;BR /&gt;I had referred this link&amp;nbsp;&lt;A href="https://www.burningsuit.co.uk/blog/best-and-worst-two-approaches-finding-top-or-bottom-n-percent-using-dax" target="_blank"&gt;https://www.burningsuit.co.uk/blog/best-and-worst-two-approaches-finding-top-or-bottom-n-percent-using-dax&lt;/A&gt;&amp;nbsp;but I am still stuck.&lt;BR /&gt;&lt;BR /&gt;It would be great if someone can help or guide on this . Please let me know if anything is not very clear .&lt;BR /&gt;Thanks much in advance !&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Oct 2022 12:11:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2813853#M89149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T12:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to calculate average resolution time which excludes top and bottom 1% of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2813866#M89151</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/TRIMMEAN/m-p/1074075#M504" target="_blank"&gt;TRIMMEAN - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 12:14:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2813866#M89151</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-03T12:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to calculate average resolution time which excludes top and bottom 1% of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2814217#M89169</link>
      <description>&lt;P&gt;Thanks very much Greg&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; !&lt;BR /&gt;I am going through the detailed solution and it will take a while for me to understand how the solution is working and apply the same logic in my data model.&amp;nbsp;&lt;BR /&gt;I see here we are using calculated table and not sure if we can get rid of this and do it using just column/measures or we have any simpler solution to this .&amp;nbsp;&lt;BR /&gt;Thanks again for your help !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 14:05:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2814217#M89169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T14:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to calculate average resolution time which excludes top and bottom 1% of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2814446#M89192</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp; I don't want to disturb original fact table as we have other business logic to be applied on whole data. Is it possible to achieve this without introducing another fact table ?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 15:53:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2814446#M89192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T15:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to calculate average resolution time which excludes top and bottom 1% of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2814470#M89194</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;It's a measure. Shouldn't introduce another fact table, just need to use it against your current table. If you post sample data, I can be more specific.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 15:58:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2814470#M89194</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-03T15:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to calculate average resolution time which excludes top and bottom 1% of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2814583#M89211</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;My bad just realized its measure in your pbix file , actually I have been trying with tables/columns/measure and it is still throwing an error .&lt;BR /&gt;Here is the sample excel file with data&amp;nbsp; &lt;A href="https://www.dropbox.com/scl/fi/7r60d7dbck9l7ou9j8bn2/Test_Incident.xlsx?dl=0&amp;amp;rlkey=9ut9k0vb7cd0e13f213foilqv" target="_self"&gt;Sample file&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Its throwing an error at Value at the end . It would be great if you can help on this&lt;BR /&gt;Thanks much !&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 16:33:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2814583#M89211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T16:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to calculate average resolution time which excludes top and bottom 1% of values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2816875#M89345</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;Its working amazingly . Thanks a lot for all your effort and great work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 12:33:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-calculate-average-resolution-time-which-excludes/m-p/2816875#M89345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-04T12:33:46Z</dc:date>
    </item>
  </channel>
</rss>

