<?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: Filter With Another Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-With-Another-Measure/m-p/3348381#M125731</link>
    <description>&lt;P&gt;It worked like a charm! Thanks a lot!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 09:07:08 GMT</pubDate>
    <dc:creator>unarsezer</dc:creator>
    <dc:date>2023-07-25T09:07:08Z</dc:date>
    <item>
      <title>Filter With Another Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-With-Another-Measure/m-p/3346215#M125648</link>
      <description>&lt;P&gt;I want the user to select a special id with one slicer input. I have a table. This table has different columns including special_ids. One of these columns is the "league" column. I request that I use the league column of the special_id selected by the user as a filter for another measurement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the user has selected Leo Messi from the slicer input. In the table with Leo Messi, the league column says USA1. I want to use this "USA1" value as a filter for another metric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Selected League = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;final_biograpy_data&lt;/SPAN&gt;&lt;SPAN&gt;[special_id]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I add the above measurement to a Card image, I get the result I want. Whoever the user selects, the league of the selected special_id appears on the card. But...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;row_number = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(deneme),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(deneme, deneme[attacking_labels]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; deneme[league] = [Selected League] &amp;amp;&amp;amp; deneme[template_position] = &lt;/SPAN&gt;&lt;SPAN&gt;"CF"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I run the above measure, unfortunately, it covers all leagues in the dataset. However, the user has selected Leo Messi. His league was USA1. USA1 has a total of 250 special_ids, while the whole dataset has 10000 observations. Why is this filter not working?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm new to PowerBI. Thank you for your understanding.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Note:&amp;nbsp;The common column in two different data sets is the special_id column.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 09:42:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-With-Another-Measure/m-p/3346215#M125648</guid>
      <dc:creator>unarsezer</dc:creator>
      <dc:date>2023-07-24T09:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filter With Another Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-With-Another-Measure/m-p/3347100#M125679</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="593300" data-lia-user-login="unarsezer" class="lia-mention lia-mention-user"&gt;unarsezer&lt;/a&gt;- Please check this out and let me know if this work.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;row_number = 
VAR SelectedLeague = [Selected League]
RETURN
    CALCULATE(
        COUNTROWS(deneme),
        FILTER(
            ALLEXCEPT(deneme, deneme[attacking_labels]),
            deneme[league] = SelectedLeague &amp;amp;&amp;amp; deneme[template_position] = "CF"
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;I've hypothetically established this DAX measure, but without much clarity regarding your datasets. If this doesn't serve your needs, I recommend you share a sample dataset. This will give me a more comprehensive understanding of your data structure, enabling me to devise a more suitable solution. Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 17:39:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-With-Another-Measure/m-p/3347100#M125679</guid>
      <dc:creator>Manoj_Nair</dc:creator>
      <dc:date>2023-07-24T17:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter With Another Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-With-Another-Measure/m-p/3348381#M125731</link>
      <description>&lt;P&gt;It worked like a charm! Thanks a lot!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 09:07:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-With-Another-Measure/m-p/3348381#M125731</guid>
      <dc:creator>unarsezer</dc:creator>
      <dc:date>2023-07-25T09:07:08Z</dc:date>
    </item>
  </channel>
</rss>

