<?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 dax function is not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/2511127#M69652</link>
    <description>&lt;LI-CODE lang="markup"&gt;Top 10 customers =
CALCULATE(
    [Total Sales],
    KEEPFILTERS(
        TOPN( 10, ALLSELECTED( DimCustomer[FirstName] ), DimCustomer[FirstName], ASC )
    )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 12 May 2022 16:24:50 GMT</pubDate>
    <dc:creator>CNENFRNL</dc:creator>
    <dc:date>2022-05-12T16:24:50Z</dc:date>
    <item>
      <title>TopN dax function is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/2511022#M69647</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;Hello guys, This is the problem I'm having right now while extracting Top 10 customers. You see the image, it's not showing proper value. here is my dax function.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Top 10 customers = &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CALCULATE([Total Sales],&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TOPN( 10, DimCustomer, DimCustomer[FirstName], ASC))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 May 2022 15:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/2511022#M69647</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-12T15:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: TopN dax function is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/2511127#M69652</link>
      <description>&lt;LI-CODE lang="markup"&gt;Top 10 customers =
CALCULATE(
    [Total Sales],
    KEEPFILTERS(
        TOPN( 10, ALLSELECTED( DimCustomer[FirstName] ), DimCustomer[FirstName], ASC )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 May 2022 16:24:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/2511127#M69652</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2022-05-12T16:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: TopN dax function is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/2511158#M69655</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;, thanks for your response. I tried with your function. It is showing this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the function was supposed to show this one with top 10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 16:37:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/2511158#M69655</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-12T16:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: TopN dax function is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/2511275#M69661</link>
      <description>&lt;P&gt;I got the solution just now. In your coding, the&amp;nbsp; DimCustomer[FirstName]&amp;nbsp; has been mentioned two times. So I replaced one with [Total sales] and it's showing the top 10 that I wanted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Top 10 customers =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Total Sales],&lt;BR /&gt;KEEPFILTERS(&lt;BR /&gt;TOPN( 10, ALLSELECTED( DimCustomer[FirstName] ), [Total sales], ASC )&lt;BR /&gt;)&lt;BR /&gt;)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 17:27:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/2511275#M69661</guid>
      <dc:creator>Alex_Hasan</dc:creator>
      <dc:date>2022-05-12T17:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: TopN dax function is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/3156228#M113216</link>
      <description>&lt;P&gt;Para que muestre esos valores, cambia el ASC por DESC&amp;nbsp; y solo con eso debería ser suficiente&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 13:48:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TopN-dax-function-is-not-working/m-p/3156228#M113216</guid>
      <dc:creator>KarinaUrtazu</dc:creator>
      <dc:date>2023-03-27T13:48:23Z</dc:date>
    </item>
  </channel>
</rss>

