<?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: Clarification Needed: How Filters Work in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4123336#M163729</link>
    <description>&lt;P&gt;Thanks for the suggestion. I tried your solution, but it resulted in an error because CategoryName and ProductName are in two different tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;'Product Categories Lookup'[CategoryName]&lt;/LI&gt;&lt;LI&gt;'Product Lookup'[ProductName]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 28 Aug 2024 18:22:10 GMT</pubDate>
    <dc:creator>SQLDev</dc:creator>
    <dc:date>2024-08-28T18:22:10Z</dc:date>
    <item>
      <title>Clarification Needed: How Filters Work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4123317#M163726</link>
      <description>&lt;P&gt;As someone who is new to Power BI and just starting to learn, I'm trying to rank products based on their orders. However, I'm encountering an issue where the ranking does not update correctly when I apply a page-level filter on CategoryName. Below is the DAX formula I'm using. Could you please help me identify if I'm missing something?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Orders = DISTINCTCOUNT('Sales Data'[OrderNumber])&lt;/LI-CODE&gt;&lt;PRE&gt;RankProducts = RANKX(ALLSELECTED('Product Lookup'),
 [Total Orders],
 ,DESC,Dense) &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 18:26:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4123317#M163726</guid>
      <dc:creator>SQLDev</dc:creator>
      <dc:date>2024-08-28T18:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification Needed: How Filters Work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4123322#M163727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please try something like below whether it suits your expectation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RankProducts =
RANKX (
    ALLSELECTED ( 'Product Lookup'[CategoryName], 'Product Lookup'[ProductName] ),
    [Total Orders],
    ,
    DESC,
    DENSE
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 18:05:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4123322#M163727</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-08-28T18:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification Needed: How Filters Work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4123336#M163729</link>
      <description>&lt;P&gt;Thanks for the suggestion. I tried your solution, but it resulted in an error because CategoryName and ProductName are in two different tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;'Product Categories Lookup'[CategoryName]&lt;/LI&gt;&lt;LI&gt;'Product Lookup'[ProductName]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Aug 2024 18:22:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4123336#M163729</guid>
      <dc:creator>SQLDev</dc:creator>
      <dc:date>2024-08-28T18:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification Needed: How Filters Work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4123371#M163733</link>
      <description>&lt;P&gt;I am not sure how your semantic model looks like, but please try something like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RankProducts =
RANKX (
    ALLSELECTED ( 'Product Lookup'[ProductName] ),
    [Total Orders],
    ,
    DESC,
    DENSE
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 28 Aug 2024 18:58:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4123371#M163733</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-08-28T18:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clarification Needed: How Filters Work</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4131719#M164114</link>
      <description>&lt;P&gt;Initially, the DAX expression wasn't working because I created a calculated column instead of a measure. Once I used the same formula as a measure, it worked perfectly.&lt;/P&gt;&lt;PRE&gt;RankProducts = RANKX(ALLSELECTED('Product Lookup'),
 [Total Orders],
 ,DESC,Dense)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 16:36:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Clarification-Needed-How-Filters-Work/m-p/4131719#M164114</guid>
      <dc:creator>SQLDev</dc:creator>
      <dc:date>2024-09-03T16:36:35Z</dc:date>
    </item>
  </channel>
</rss>

