<?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 table before using CROSSJOIN in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-before-using-CROSSJOIN/m-p/1663520#M33941</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , what is the expected output table, is not very clear. Please share an example &lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2021 16:01:59 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-02-12T16:01:59Z</dc:date>
    <item>
      <title>Filter table before using CROSSJOIN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-before-using-CROSSJOIN/m-p/1663342#M33933</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a crossjoin table of the table below with only "A" values in the "field" column. I know how to do this if I first manually filter the field. However, this is not a suitable option for me because I want to minimize the amount of tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the dax formula I would use after manual filteration:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;crossjoin = 
VAR _tab = 
    ADDCOLUMNS(
        CROSSJOIN(ALL('table where field filtered'[id]), ALL('table where field filtered'[category])),
        "idCategory", 'table where field filtered'[id] &amp;amp; 'table where field filtered'[category]
    )
RETURN
    ADDCOLUMNS(
        _tab,
            "isyes",
                VAR _val =
                    LOOKUPVALUE('table where field filtered'[value], 'table where field filtered'[id_category], [idCategory])
                RETURN
                    IF(_val = BLANK(), 0, _val)
    )​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my questions are:&lt;/P&gt;&lt;P&gt;1. Is it possible to filter the "value" column in the dax formula above?&lt;/P&gt;&lt;P&gt;2. Is there a way to a way to do the whole process in a measure instead of creating a new table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find the pbix &lt;A href="https://drive.google.com/file/d/1hhZxn5EyQ-Wz6Mcab8i7Px1vKDamAsyk/view?usp=sharing" target="_self"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1hhZxn5EyQ-Wz6Mcab8i7Px1vKDamAsyk/view?usp=sharing" target="_self"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1hhZxn5EyQ-Wz6Mcab8i7Px1vKDamAsyk/view?usp=sharing" target="_self"&gt;I'm very grateful for everyone who have the time to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1hhZxn5EyQ-Wz6Mcab8i7Px1vKDamAsyk/view?usp=sharing" target="_self"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1hhZxn5EyQ-Wz6Mcab8i7Px1vKDamAsyk/view?usp=sharing" target="_self"&gt;Juls&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 14:34:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-before-using-CROSSJOIN/m-p/1663342#M33933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-12T14:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table before using CROSSJOIN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-before-using-CROSSJOIN/m-p/1663520#M33941</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , what is the expected output table, is not very clear. Please share an example &lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 16:01:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-before-using-CROSSJOIN/m-p/1663520#M33941</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-12T16:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table before using CROSSJOIN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-before-using-CROSSJOIN/m-p/1665205#M34001</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the expected output table. In this example I have filtered "field" A in query editor before creating the new table using crossjoin. My goal is to find a way to keep the original table untouched and do the "field" filtration in dax when creating the new crossjoined table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2021 16:26:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-before-using-CROSSJOIN/m-p/1665205#M34001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-14T16:26:21Z</dc:date>
    </item>
  </channel>
</rss>

