<?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: How to display Top 10 by month in a table / matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397714#M128215</link>
    <description>&lt;P&gt;Here's the file with the mock data where this solution works -&amp;nbsp;&lt;A href="https://www.dropbox.com/scl/fi/bemnu8v7a4ahcbpczew60/community-multiple-topx.pbix?rlkey=5ty9flldoh8tlda8zrr3bs550&amp;amp;dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fi/bemnu8v7a4ahcbpczew60/community-multiple-topx.pbix?rlkey=5ty9flldoh8tlda8zrr3bs550&amp;amp;dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please double check with what you do.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 19:20:35 GMT</pubDate>
    <dc:creator>barritown</dc:creator>
    <dc:date>2023-08-24T19:20:35Z</dc:date>
    <item>
      <title>How to display Top 10 by month in a table / matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3395359#M128072</link>
      <description>&lt;P&gt;I have a table called Forms.&amp;nbsp; Within that table, I have a field called forms, Total and YearMonth.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Forms&lt;/TD&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;YearMonth&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;202305&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;202305&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;202305&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;202304&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;TD&gt;202304&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;202304&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like my end result to be a table or some visualization where the user can see The top x forms by month.&lt;/P&gt;&lt;P&gt;For the month of April 202304 the top 3 forms were&lt;/P&gt;&lt;P&gt;A, B, then C&lt;/P&gt;&lt;P&gt;For the month of May 202305 the top 3 forms were&amp;nbsp;&lt;/P&gt;&lt;P&gt;C, B, then A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I go about creating doing this in PowerBI? Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 17:16:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3395359#M128072</guid>
      <dc:creator>jenmar2023</dc:creator>
      <dc:date>2023-08-23T17:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to display Top 10 by month in a table / matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397107#M128168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="594193" data-lia-user-login="jenmar2023" class="lia-mention lia-mention-user"&gt;jenmar2023&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You don't need any DAX here.&lt;/P&gt;&lt;P&gt;All you need is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Add a slicer.&lt;/P&gt;&lt;P&gt;2) Add a table visual.&lt;/P&gt;&lt;P&gt;3) Open the Filters pane and use the Top filter there for the [Total] column.&lt;/P&gt;&lt;P&gt;4) Enable sorting by [Total].&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Best Regards, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Alexander&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;A href="https://youtube.com/@powerbi-vlog" target="_blank"&gt;My YouTube vlog in English&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;A href="https://youtube.com/@pbi-vlog" target="_blank"&gt;My YouTube vlog in Russian&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 13:28:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397107#M128168</guid>
      <dc:creator>barritown</dc:creator>
      <dc:date>2023-08-24T13:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to display Top 10 by month in a table / matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397135#M128169</link>
      <description>&lt;P&gt;The user only sees it one month at a time though? They have to select it each month. Is there a way to show it in a table view all at once?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 13:36:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397135#M128169</guid>
      <dc:creator>jenmar2023</dc:creator>
      <dc:date>2023-08-24T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to display Top 10 by month in a table / matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397321#M128181</link>
      <description>&lt;P&gt;Okay, in this scenario you'll need some DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could create a calculated column like the one below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In plain text:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Top3 Flag = 
VAR CurrentMonth = [YearMonth]
VAR Top3 = CONCATENATEX ( TOPN ( 3, FILTER ( Data, [YearMonth] = CurrentMonth ), [Total] ), [Forms], "," )
RETURN CONTAINSSTRING ( Top3, [Forms] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you have it, you should set it to True in the filter pane and sort your table by 2 columns holding the Shift key. Like on the screenshot below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Best Regards, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Alexander&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;A href="https://youtube.com/@powerbi-vlog" target="_blank"&gt;My YouTube vlog in English&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;A href="https://youtube.com/@pbi-vlog" target="_blank"&gt;My YouTube vlog in Russian&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:48:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397321#M128181</guid>
      <dc:creator>barritown</dc:creator>
      <dc:date>2023-08-24T14:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to display Top 10 by month in a table / matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397469#M128193</link>
      <description>&lt;P&gt;Didn't work. Can't display the visual when I add Top3 flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 16:19:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397469#M128193</guid>
      <dc:creator>jenmar2023</dc:creator>
      <dc:date>2023-08-24T16:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to display Top 10 by month in a table / matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397714#M128215</link>
      <description>&lt;P&gt;Here's the file with the mock data where this solution works -&amp;nbsp;&lt;A href="https://www.dropbox.com/scl/fi/bemnu8v7a4ahcbpczew60/community-multiple-topx.pbix?rlkey=5ty9flldoh8tlda8zrr3bs550&amp;amp;dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fi/bemnu8v7a4ahcbpczew60/community-multiple-topx.pbix?rlkey=5ty9flldoh8tlda8zrr3bs550&amp;amp;dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please double check with what you do.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 19:20:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-Top-10-by-month-in-a-table-matrix/m-p/3397714#M128215</guid>
      <dc:creator>barritown</dc:creator>
      <dc:date>2023-08-24T19:20:35Z</dc:date>
    </item>
  </channel>
</rss>

