<?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: DAX FILTER SYNTAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074110#M15036</link>
    <description>&lt;P&gt;Something along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Products = 
    FILTER(
      GROUPBY(
        'products culumns',
        [product_id],
        "Count",COUNTX(CURRENTGROUP(),[sub_category])
      ),
      [Count]&amp;gt;1
    )
RETURN
  &amp;lt;some calculation where FILTER('orders culumns',[product_id] IN __Products) &amp;gt;
  &lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 05 May 2020 23:40:42 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-05-05T23:40:42Z</dc:date>
    <item>
      <title>DAX FILTER SYNTAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074079#M15034</link>
      <description>&lt;P&gt;Hello all ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help please&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have two tables - orders and products&amp;nbsp;category&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;products&amp;nbsp;culumns&amp;nbsp;&lt;/STRONG&gt; category , sub_category ,&amp;nbsp; product_id&amp;nbsp; (&amp;nbsp;product_id&amp;nbsp; can be in many&amp;nbsp;sub_categories)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;orders culumns&lt;/STRONG&gt; - cust_id , order_date ,product_id , category , sub_category&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I create a measure that showes only&amp;nbsp;&lt;U&gt;orders of products that have more than one sub_category&lt;/U&gt; ?&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 23:11:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074079#M15034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-05T23:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER SYNTAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074110#M15036</link>
      <description>&lt;P&gt;Something along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Products = 
    FILTER(
      GROUPBY(
        'products culumns',
        [product_id],
        "Count",COUNTX(CURRENTGROUP(),[sub_category])
      ),
      [Count]&amp;gt;1
    )
RETURN
  &amp;lt;some calculation where FILTER('orders culumns',[product_id] IN __Products) &amp;gt;
  &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 May 2020 23:40:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074110#M15036</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-05T23:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER SYNTAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074111#M15037</link>
      <description>Why do both of your tables have fields "category" and "sub_category"? Is it not enough to store these is the Products dimension?&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Tue, 05 May 2020 23:42:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074111#M15037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-05T23:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER SYNTAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074124#M15038</link>
      <description>&lt;P&gt;no ...i need it to create a relation between the tables so on could filter the other&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 23:56:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074124#M15038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-05T23:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER SYNTAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074173#M15042</link>
      <description>&lt;P&gt;You can't create a relationship between 2 tables on many columns. Secondly, slicing Orders by category and sub_category should be carried out via Products where these columns (should) reside. Please note that slicing should NEVER be done directly on a fact table, only via dimensions. If you don't follow the rules, you'll be sorry rather sooner than later. Even better, you'll be creating complex and potentially slow DAX which at times will return wrong results without you even realizing this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider yourself warned (for your own good).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 00:22:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074173#M15042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-06T00:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER SYNTAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074177#M15043</link>
      <description>By the way... If your products belong to many subcategories, then you should have a hidden bridge table from ProductId to SubcategoryId which will join to Products and Subcategories on both sides and slicing should be then performed via Products and/or Subcategories.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 06 May 2020 00:25:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074177#M15043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-06T00:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FILTER SYNTAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074292#M15050</link>
      <description>&lt;P&gt;The filter is by the category (pk)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone knowes how to create this DAX ?&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 01:35:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FILTER-SYNTAX/m-p/1074292#M15050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-06T01:35:38Z</dc:date>
    </item>
  </channel>
</rss>

