<?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 with multiple columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-n-with-multiple-columns/m-p/2927028#M96207</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, i think the below solution will work for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a calculated meaure .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TOPN( 3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VALUES( table1[Country] ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CALCULATE( SUM(table1[Values] ) )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil Chenna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 11:39:06 GMT</pubDate>
    <dc:creator>NikhilChenna</dc:creator>
    <dc:date>2022-11-24T11:39:06Z</dc:date>
    <item>
      <title>Top n with multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-n-with-multiple-columns/m-p/2926980#M96204</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been searching for the solution but cant been able to complete it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 1 table (X) which has columns Costs (and has cost A,B,C,D,E), Country, Year,&amp;nbsp; YearMonth, Quarter, Brand and Value (which has the values).&lt;/P&gt;&lt;P&gt;Then i have a dashboard that has 2 selectors (Brand - Costs) and 4 tables (Ranking by country/year - Ranking by country/brand/year -&amp;nbsp;Ranking by country/brand/month-&amp;nbsp;Ranking by country/brand/quarter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue come up when i want to only show top 3 in each table, lets say create a rank where i need to show top 3 countries that has biggests cost A (selected in selector) and in there top 3 years in each brand, below you can find an example in excel, basically replicate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Selected cost A and below rank:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 11:36:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-n-with-multiple-columns/m-p/2926980#M96204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-24T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Top n with multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-n-with-multiple-columns/m-p/2927028#M96207</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, i think the below solution will work for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a calculated meaure .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TOPN( 3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; VALUES( table1[Country] ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CALCULATE( SUM(table1[Values] ) )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nikhil Chenna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 11:39:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-n-with-multiple-columns/m-p/2927028#M96207</guid>
      <dc:creator>NikhilChenna</dc:creator>
      <dc:date>2022-11-24T11:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Top n with multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-n-with-multiple-columns/m-p/2927192#M96219</link>
      <description>&lt;P&gt;Sadly no &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: Bringing a lot of values when expecting only 1&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 12:56:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-n-with-multiple-columns/m-p/2927192#M96219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-24T12:56:32Z</dc:date>
    </item>
  </channel>
</rss>

