<?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 Questions about selection filter in power bi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-about-selection-filter-in-power-bi/m-p/3708032#M144247</link>
    <description>&lt;P&gt;Hello everyone, my question and a current problem is how can I select a specific customer in the graph and it correctly returns my top 5, the top 5 only works correctly when I perform the filtering through a specific filter, which in this case is typing the customer's name , but I would like if just by selecting the customer the data would adjust, for the other graphs it works properly, except for the top 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Field 1 - Manual Filter.&lt;/P&gt;&lt;P&gt;Field 2 - Bar chart that you would like, once selected, to properly filter the top 5.&lt;/P&gt;&lt;P&gt;Field 3 - Top 5.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 12:54:57 GMT</pubDate>
    <dc:creator>jeanbinhozouza</dc:creator>
    <dc:date>2024-02-19T12:54:57Z</dc:date>
    <item>
      <title>Questions about selection filter in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-about-selection-filter-in-power-bi/m-p/3708032#M144247</link>
      <description>&lt;P&gt;Hello everyone, my question and a current problem is how can I select a specific customer in the graph and it correctly returns my top 5, the top 5 only works correctly when I perform the filtering through a specific filter, which in this case is typing the customer's name , but I would like if just by selecting the customer the data would adjust, for the other graphs it works properly, except for the top 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Field 1 - Manual Filter.&lt;/P&gt;&lt;P&gt;Field 2 - Bar chart that you would like, once selected, to properly filter the top 5.&lt;/P&gt;&lt;P&gt;Field 3 - Top 5.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 12:54:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-about-selection-filter-in-power-bi/m-p/3708032#M144247</guid>
      <dc:creator>jeanbinhozouza</dc:creator>
      <dc:date>2024-02-19T12:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about selection filter in power bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-about-selection-filter-in-power-bi/m-p/3708127#M144260</link>
      <description>&lt;P&gt;You can use DAX measures combined with slicers or filters. Here's a general approach you can follow:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create a Measure for the Top 5 Customers:&lt;/STRONG&gt; You need to create a DAX measure that calculates the relevant metric for your customers and returns the top 5 based on the selection.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Use a Slicer or Filter for Customer Selection:&lt;/STRONG&gt; Ensure you have a slicer or filter visual on your report page that allows users to select a specific customer.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Apply the Measure to Your Visual:&lt;/STRONG&gt; Apply the DAX measure you created in step 1 to the visual that displays the top 5 customers. This visual could be a table or a bar chart, depending on your preference.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here's a sample DAX measure that calculates the metric (let's call it "Metric") and returns the top 5 customers based on the selected customer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Top 5 Customers =&lt;BR /&gt;VAR SelectedCustomer = SELECTEDVALUE('Customer'[CustomerName])&lt;BR /&gt;RETURN&lt;BR /&gt;TOPN(5,&lt;BR /&gt;FILTER(ALL('Customer'),&lt;BR /&gt;'Customer'[CustomerName] = SelectedCustomer&lt;BR /&gt;),&lt;BR /&gt;[Metric], DESC&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace 'Customer'[CustomerName] with the actual column reference to your customer names, and [Metric] with the actual metric you're measuring (e.g., sales, revenue, etc.).&lt;/P&gt;&lt;P&gt;Once you have the measure in place, you can apply it to your visual representing the top 5 customers. When a specific customer is selected in the slicer or filter, the top 5 customers visual should adjust accordingly based on the selected customer.&lt;/P&gt;&lt;P&gt;If you encounter any issues or need further assistance with implementing this in Power BI, feel free to provide more details, and I can assist you further.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 13:32:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Questions-about-selection-filter-in-power-bi/m-p/3708127#M144260</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-02-19T13:32:28Z</dc:date>
    </item>
  </channel>
</rss>

