<?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: Trying to Write a TopN Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Write-a-TopN-Measure/m-p/2663623#M79063</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I hope the below can provide some ideas on how to create a solution for your dataset.&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;LI-CODE lang="markup"&gt;Top five over ordered: =
CALCULATE (
    [Over ordered measure:],
    KEEPFILTERS (
        TOPN ( 5, ALL ( Sales[Suppliers] ), [Over ordered measure:], DESC )
    )
)
&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 27 Jul 2022 03:13:28 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-07-27T03:13:28Z</dc:date>
    <item>
      <title>Trying to Write a TopN Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Write-a-TopN-Measure/m-p/2663566#M79060</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have a caclulated column in my &lt;STRONG&gt;Sales&lt;/STRONG&gt; table of &lt;STRONG&gt;Over Odered&lt;/STRONG&gt; values. I've then created a table visual with &lt;STRONG&gt;Suppliers&lt;/STRONG&gt; in rows and &lt;STRONG&gt;Over Orders&lt;/STRONG&gt; as a column. I now wish to just display the Top 5 Over Orders in that table visual. How am I able to achieve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 02:30:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Write-a-TopN-Measure/m-p/2663566#M79060</guid>
      <dc:creator>1001</dc:creator>
      <dc:date>2022-07-27T02:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Write a TopN Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Write-a-TopN-Measure/m-p/2663623#M79063</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I hope the below can provide some ideas on how to create a solution for your dataset.&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;LI-CODE lang="markup"&gt;Top five over ordered: =
CALCULATE (
    [Over ordered measure:],
    KEEPFILTERS (
        TOPN ( 5, ALL ( Sales[Suppliers] ), [Over ordered measure:], DESC )
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jul 2022 03:13:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Write-a-TopN-Measure/m-p/2663623#M79063</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-07-27T03:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to Write a TopN Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Write-a-TopN-Measure/m-p/2663688#M79070</link>
      <description>&lt;P&gt;Hi Jiwan, I ended up cheating a little. As you can see from the image (suppliers blurred), I just sorted the graphic highest to lowest and resized the table to only view first four rows. I just thought a measure may simplyfy me resizing the table.&amp;nbsp; Many thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 03:53:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Trying-to-Write-a-TopN-Measure/m-p/2663688#M79070</guid>
      <dc:creator>1001</dc:creator>
      <dc:date>2022-07-27T03:53:10Z</dc:date>
    </item>
  </channel>
</rss>

