<?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: TOPN of averages in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-of-averages/m-p/1821088#M38621</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try measures like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;total Hours = sum('Batch Details'[Total Hours])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TOP 10/N =&lt;/P&gt;
&lt;P&gt;CALCULATE(averageX(VALUES('Batch Details'[Specification]),[total Hours ]),TOPN(10,all('Batch Details'[Specification]),[total Hours],DESC))&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 02:51:42 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-05-04T02:51:42Z</dc:date>
    <item>
      <title>TOPN of averages</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-of-averages/m-p/1820790#M38617</link>
      <description>&lt;P&gt;Hi guys i've seen a lot of posts about averageing the TOPN values, but in my case i want TOPN to show me in a Card the best performing [Specification] in terms of their average [total hours].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been playing with this but it returns a blank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Top Specification = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;calculate(SELECTEDVALUE('Batch Details'[Specification]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TOPN(1, ALL('Batch Details'),AVERAGEX(TOPN(1,'Batch Details','Batch Details'[Total Hours],DESC),'Batch Details'[Total Hours]),DESC))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can i manage this? I'd like perhpas 3 x different cards showing me the best specifications in terms of their average total hours.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 May 2021 23:36:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-of-averages/m-p/1820790#M38617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-03T23:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: TOPN of averages</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-of-averages/m-p/1821088#M38621</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try measures like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;total Hours = sum('Batch Details'[Total Hours])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TOP 10/N =&lt;/P&gt;
&lt;P&gt;CALCULATE(averageX(VALUES('Batch Details'[Specification]),[total Hours ]),TOPN(10,all('Batch Details'[Specification]),[total Hours],DESC))&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 02:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-of-averages/m-p/1821088#M38621</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-05-04T02:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: TOPN of averages</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-of-averages/m-p/1839674#M39238</link>
      <description>&lt;P&gt;Thanks Amit. I'm fine with the average calculation. I just wanted to show on a card the specification that relates to the highest average. The workaround i've found waas to use a table instead and filter it with a RankX on the average.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 01:58:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-of-averages/m-p/1839674#M39238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-13T01:58:15Z</dc:date>
    </item>
  </channel>
</rss>

