<?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 Display Top 10 Items with Same Characteristic as Slicer Selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Top-10-Items-with-Same-Characteristic-as-Slicer/m-p/1082356#M15337</link>
    <description>&lt;P&gt;Hi everyone, thanks in advance for your help. I'm not sure if this is even possible via DAX, but here we go:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Background:&lt;/P&gt;&lt;P&gt;I have a Sales table with columns [Markets], [Product Category], [Product Department], and [Dol Sales]. For each department there are multiple categories, but for each category just one department.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a slicer that has my list of categories (only one category will be selected)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to do the following for a given market:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Find the department of the category selected in the slicer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Find the top 10 categories by Dol Sales within that department and display them in a chart. If the category selected in the slicer is not in the top 10, display it as well&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No idea if this is possible, but I appreciate all of your help&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 09 May 2020 15:48:04 GMT</pubDate>
    <dc:creator>msmays5</dc:creator>
    <dc:date>2020-05-09T15:48:04Z</dc:date>
    <item>
      <title>Display Top 10 Items with Same Characteristic as Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Top-10-Items-with-Same-Characteristic-as-Slicer/m-p/1082356#M15337</link>
      <description>&lt;P&gt;Hi everyone, thanks in advance for your help. I'm not sure if this is even possible via DAX, but here we go:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Background:&lt;/P&gt;&lt;P&gt;I have a Sales table with columns [Markets], [Product Category], [Product Department], and [Dol Sales]. For each department there are multiple categories, but for each category just one department.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a slicer that has my list of categories (only one category will be selected)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to do the following for a given market:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Find the department of the category selected in the slicer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Find the top 10 categories by Dol Sales within that department and display them in a chart. If the category selected in the slicer is not in the top 10, display it as well&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No idea if this is possible, but I appreciate all of your help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 15:48:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Top-10-Items-with-Same-Characteristic-as-Slicer/m-p/1082356#M15337</guid>
      <dc:creator>msmays5</dc:creator>
      <dc:date>2020-05-09T15:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 10 Items with Same Characteristic as Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Top-10-Items-with-Same-Characteristic-as-Slicer/m-p/1082398#M15338</link>
      <description>&lt;P&gt;Once you pick a value in a slicer, your table visual will filter to just that category.&amp;nbsp; Two immediate thoughts are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Add Category and Department slicers.&amp;nbsp; When you pick a category, Department slicer will filter too. Click that department, then uncheck category.&amp;nbsp; Create table visual with a TopN type measure or use the TopN filter in Filter Panel.&amp;nbsp; Not ideal for the user, I know.&lt;/P&gt;&lt;P&gt;2. Disconnected table approach (recommended) - reference your intial table in query editor, remove all but Category and Department columns, remove duplicates on Category.&amp;nbsp; Load that table but do not make a relationship to your Sales table.&amp;nbsp; Then use the Category column from that new table as your slicer, but the original Category column in your table visual.&amp;nbsp; Then use a measure like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Measure = var selecteddepartment = selectedvalue(SlicerTable[Department])&lt;/P&gt;&lt;P&gt;return calculate(sum(Sales[Amount]), treatas(values(SlicerTable[Department]), Sales[Department]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add a TopN filter on the table visual for Department with same measure (or add TopN clause to the measure).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 17:34:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Top-10-Items-with-Same-Characteristic-as-Slicer/m-p/1082398#M15338</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2020-05-09T17:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Display Top 10 Items with Same Characteristic as Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Top-10-Items-with-Same-Characteristic-as-Slicer/m-p/1082563#M15357</link>
      <description>&lt;P&gt;Disconnected table makes perfect sense. Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 23:54:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Top-10-Items-with-Same-Characteristic-as-Slicer/m-p/1082563#M15357</guid>
      <dc:creator>msmays5</dc:creator>
      <dc:date>2020-05-09T23:54:30Z</dc:date>
    </item>
  </channel>
</rss>

