<?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: Top N products by highest score in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-products-by-highest-score/m-p/2867375#M92417</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create a new column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RANK = RANKX('Table',[Sore],,DESC,Skip)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a table and put RANK field into filters, you can&lt;SPAN&gt;&amp;nbsp;show the top 10 products according to their highest score.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 09:10:12 GMT</pubDate>
    <dc:creator>v-yadongf-msft</dc:creator>
    <dc:date>2022-10-27T09:10:12Z</dc:date>
    <item>
      <title>Top N products by highest score</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-products-by-highest-score/m-p/2859575#M92040</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with products and their rating score, like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to show the top 10 products according to their highest score.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling to find the correct dax that will return me the highest score for each distinct product, and then use it in a visualisation. Top N doesn't show the top 10 products either, it will only arrange the full Product list in to descending order when used in a visualisation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does anyone know the simplest way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 15:38:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-products-by-highest-score/m-p/2859575#M92040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-24T15:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Top N products by highest score</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-products-by-highest-score/m-p/2859660#M92049</link>
      <description>&lt;P&gt;Create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Highest score = MAX( 'Table'[Score])&lt;/LI-CODE&gt;
&lt;P&gt;you can then put that into a table visual with the product and use it as a TOPN filter in the filter pane&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 16:12:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-products-by-highest-score/m-p/2859660#M92049</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-10-24T16:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Top N products by highest score</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-products-by-highest-score/m-p/2859773#M92064</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;first start by created the max measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;max of eac prodcut = CALCULATE(MAX(Bob[Score]),ALLEXCEPT(Bob,Bob[Product]))&lt;/LI-CODE&gt;&lt;P&gt;now you have to rank your scores:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ranking based on max = RANKX(ALL(Bob[Product]),[max of eac prodcut],,DESC,SKIP)&lt;/LI-CODE&gt;&lt;P&gt;and to pick your top 10 :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Top 10 products = CALCULATE([max of eac prodcut],FILTER(Bob,[ranking based on max]&amp;lt;=10))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or just go to filters,add filetrs topn and put the max of each product measure as values&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 17:39:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-products-by-highest-score/m-p/2859773#M92064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-24T17:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Top N products by highest score</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-products-by-highest-score/m-p/2867375#M92417</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create a new column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RANK = RANKX('Table',[Sore],,DESC,Skip)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a table and put RANK field into filters, you can&lt;SPAN&gt;&amp;nbsp;show the top 10 products according to their highest score.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 09:10:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-N-products-by-highest-score/m-p/2867375#M92417</guid>
      <dc:creator>v-yadongf-msft</dc:creator>
      <dc:date>2022-10-27T09:10:12Z</dc:date>
    </item>
  </channel>
</rss>

