<?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: Limit Data WITHOUT TOPN in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Data-WITHOUT-TOPN/m-p/4348564#M172715</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;By default, show only 1,000 items ordered by the latest datetime.
Add a button to allow users to load all the data if needed.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The visual already does this for you automatically.&amp;nbsp; It pages results in chunks of 500 rows.&lt;/P&gt;
&lt;P&gt;Ironically, the DAX code for that uses TOPN(501,...) if you want it or not &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2025 15:00:58 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-01-02T15:00:58Z</dc:date>
    <item>
      <title>Limit Data WITHOUT TOPN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Data-WITHOUT-TOPN/m-p/4347679#M172670</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a question about a table (drill-through) I use in my dashboard.&lt;/P&gt;&lt;P&gt;The table is based on a fact table (with one item per row) and can dynamically display anywhere between 5 rows to 5 million rows. It joins with 7 different dimension tables and includes 15 columns.&lt;/P&gt;&lt;P&gt;I’m trying to improve the performance of this table and was thinking about implementing the following logic:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;By default, show only 1,000 items ordered by the latest datetime.&lt;/LI&gt;&lt;LI&gt;Add a button to allow users to load all the data if needed.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The problem is that using TOPN doesn’t seem to help (as far as I understand) because the engine still loads all the data first and only then filters it down to the top 1,000 rows. I tested this, and there was no noticeable improvement in performance.&lt;/P&gt;&lt;P&gt;I’m not sure how to implement this in DAX. I’m working with a Tabular model using a live connection, and the solution needs to remain dynamic and interactive.&lt;/P&gt;&lt;P&gt;Do you have any suggestions for how to achieve this?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2025 10:28:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Data-WITHOUT-TOPN/m-p/4347679#M172670</guid>
      <dc:creator>dorku</dc:creator>
      <dc:date>2025-01-01T10:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Data WITHOUT TOPN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Data-WITHOUT-TOPN/m-p/4348564#M172715</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;By default, show only 1,000 items ordered by the latest datetime.
Add a button to allow users to load all the data if needed.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The visual already does this for you automatically.&amp;nbsp; It pages results in chunks of 500 rows.&lt;/P&gt;
&lt;P&gt;Ironically, the DAX code for that uses TOPN(501,...) if you want it or not &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:00:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Data-WITHOUT-TOPN/m-p/4348564#M172715</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-02T15:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Limit Data WITHOUT TOPN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Data-WITHOUT-TOPN/m-p/4349407#M172741</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="906988" data-lia-user-login="dorku" class="lia-mention lia-mention-user"&gt;dorku&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following methods.&lt;/P&gt;
&lt;P&gt;Sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = Var _rank=RANKX(All('Table'),CALCULATE(MAX('Table'[Date])),,DESC,Dense)
RETURN
IF(_rank&amp;lt;=10,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;Place this measure on filters on this visual&amp;nbsp;and set it equal to 1.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;At this point, the top ten data by date are displayed by default. If you choose to clear the filter, all data will be displayed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&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>Fri, 03 Jan 2025 07:00:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Limit-Data-WITHOUT-TOPN/m-p/4349407#M172741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-03T07:00:40Z</dc:date>
    </item>
  </channel>
</rss>

