<?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 10 countries using DAX code in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531149#M70992</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;its dose not worked,&lt;BR /&gt;see the right visual which I used a filter pane to show&amp;nbsp; the top 10 countries.&amp;nbsp;&lt;BR /&gt;In your code dax which is in left visual it dose give the top 10 countries and the numbers are nor correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 22 May 2022 11:04:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-22T11:04:53Z</dc:date>
    <item>
      <title>TOP 10 countries using DAX code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531124#M70990</link>
      <description>&lt;P&gt;Hello Experts,&lt;BR /&gt;I want to help me to write the DAX code to show only the TOP 10 Countries based on Revenue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 07:47:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531124#M70990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-22T07:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 countries using DAX code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531137#M70991</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Top 10 Countries By Revenues = 
VAR _top10_countries = TOPN(10, ALLSELECTED('Table'[Country]),[Revenues Measure])
RETURN
    CALCULATE(
        [Sales Amount],
        KEEPFILTERS(_top10_countries)
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/Contoso-by-SpartaBI/m-p/2449543" target="_blank" rel="noopener"&gt;&lt;FONT size="4" color="#0000EE"&gt;Showcase Report – Contoso By SpartaBI&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://www.linkedin.com/company/spartabi" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.facebook.com/SpartaBI" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 08:20:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531137#M70991</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-05-22T08:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 countries using DAX code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531149#M70992</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;its dose not worked,&lt;BR /&gt;see the right visual which I used a filter pane to show&amp;nbsp; the top 10 countries.&amp;nbsp;&lt;BR /&gt;In your code dax which is in left visual it dose give the top 10 countries and the numbers are nor correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 11:04:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531149#M70992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-22T11:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 countries using DAX code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531207#M70998</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;what is the column you use in the matrix for country, and what ia the base measure?&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 11:07:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531207#M70998</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-05-22T11:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 countries using DAX code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531210#M71000</link>
      <description>&lt;P&gt;its same, I know you sae different name in code and visual, but its same the coulm and measure.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="377293" data-lia-user-login="SpartaBI" class="lia-mention lia-mention-user"&gt;SpartaBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 11:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531210#M71000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-22T11:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 countries using DAX code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531216#M71001</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;it should work :))&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;What is [Att_Value1]? Is that a column or a measure?&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 11:18:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531216#M71001</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-05-22T11:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 countries using DAX code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531222#M71003</link>
      <description>&lt;P&gt;Its worked. So Sorry I had a mistake. I will Accept your solurtions.&lt;BR /&gt;&lt;BR /&gt;I have another Question:&amp;nbsp;&lt;BR /&gt;If I want&amp;nbsp; to show top 10 countries and show me the grand total of each country&amp;nbsp; out of all countries ( I dont want to give&amp;nbsp; the grand total&amp;nbsp; of Top 10 countries&amp;nbsp; only).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 11:29:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531222#M71003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-22T11:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 countries using DAX code</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531228#M71004</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;no worries &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;This is for the scenario where the total is for all (just change it to your names and 10 instead of 3):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Top 3 Countries By Sales = 
VAR _countries = TOPN(3, ALLSELECTED(Customer[Country]),[Sales Amount])
RETURN
    IF(
        ISINSCOPE(Customer[Country]),
        CALCULATE(
            [Sales Amount],
            KEEPFILTERS(_countries)
        ),
        [Sales Amount]
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Data-Stories-Gallery/Contoso-by-SpartaBI/m-p/2449543" target="_blank" rel="noopener"&gt;&lt;FONT size="4" color="#0000EE"&gt;Showcase Report – Contoso By SpartaBI&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://www.linkedin.com/company/spartabi" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.facebook.com/SpartaBI" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.spartabi.com" target="_blank" rel="noopener"&gt;&lt;img /&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 11:35:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOP-10-countries-using-DAX-code/m-p/2531228#M71004</guid>
      <dc:creator>SpartaBI</dc:creator>
      <dc:date>2022-05-22T11:35:01Z</dc:date>
    </item>
  </channel>
</rss>

