<?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 N (DAX Formulas) Issues in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-N-DAX-Formulas-Issues/m-p/3502894#M134341</link>
    <description>&lt;P&gt;Please note that .XLSB is not a preferred format.&amp;nbsp; Can you please provide the sample in .XLSX ?&lt;/P&gt;</description>
    <pubDate>Sat, 28 Oct 2023 23:16:00 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-10-28T23:16:00Z</dc:date>
    <item>
      <title>TOPN N (DAX Formulas) Issues</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-N-DAX-Formulas-Issues/m-p/3501962#M134310</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I want to have a column or a line with TOP N (lets say 3) products sold in a period, working along the data calendar hierarchy. Like, what were the top 3 products sold per year, quarter, month, day according pivot table data hierarchy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Files and prints attached&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please refer to pivot table in tab Pivot Table (6) to check the measure I tried to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problems Im facing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1 I'v tried a bunch of top n tutorials and none of them work. Some use summarize, sumx, concatenatexâ€¦ Question: I cant just use straight ahead TOP N like a function to have a column or line in the pivot table the 3 most sold products? I have to use some function to initialize the TOP N?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2 I did the relationship between tblProducts and tblOrders but the tblProducts does not show on the fields to select into the pivot table. Why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3 =sumx(TOPN(3, SUMMARIZE(tblOrders, Calendar'[Date],topn sales,sum(tblOrders[Qty])),[topn sales],DESC),[topn sales])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tried this formula, but function sum [sum(tblOrders[Qty])] only accepts a table column and not another measure (used [Qty] so it could work).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Id like to use the top 3 from Total Revenue X, how can I do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Summarizing everything, how can I have the Top 3 products sold by period?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://1drv.ms/x/s!AuqksJOTwkuUwwVkxxnDcWyp4cZZ?e=lPRwct" target="_blank"&gt;Power Pivot Training - BEGIN - TS Fiscal Calendar.xlsb&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 19:04:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-N-DAX-Formulas-Issues/m-p/3501962#M134310</guid>
      <dc:creator>Souzaeq</dc:creator>
      <dc:date>2023-10-27T19:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: TOPN N (DAX Formulas) Issues</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-N-DAX-Formulas-Issues/m-p/3502894#M134341</link>
      <description>&lt;P&gt;Please note that .XLSB is not a preferred format.&amp;nbsp; Can you please provide the sample in .XLSX ?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2023 23:16:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/TOPN-N-DAX-Formulas-Issues/m-p/3502894#M134341</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-28T23:16:00Z</dc:date>
    </item>
  </channel>
</rss>

