<?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: Need help to convert this LEFT JOIN in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1488912#M28571</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;assume you already got a dimpart table and factinventor Table in the model, and then try this code&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Table3 =
VAR LeftTbl =
    SUMMARIZE (
        FILTER ( FactTable, FactTable[TransactionType] IN { "4", "6" } ),
        dimTable[SiteID],
        dimTable[PartID],
        FactTable[Length],
        FactTable[Width]
    )
VAR RightTbl =
    SELECTCOLUMNS (
        SUMMARIZE (
            FILTER ( FactTable, FactTable[TransactionType] IN { "5", "7" } ),
            dimTable[PartID],
            FactTable[Length],
            FactTable[Width]
        ),
        "rPartID", dimTable[PartID],
        "rLength", FactTable[Length],
        "rWidth", FactTable[Width]
    )
RETURN
    GENERATE (
        LeftTbl,
        FILTER (
            RightTbl,
            [rPartID] = dimTable[PartID]
                &amp;amp;&amp;amp; [rLength] = FactTable[Length]
                &amp;amp;&amp;amp; [rWidth] = FactTable[Width]
        )
    )&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 12 Nov 2020 06:32:45 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2020-11-12T06:32:45Z</dc:date>
    <item>
      <title>Need help to convert this LEFT JOIN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1486469#M28450</link>
      <description>&lt;P&gt;Hi Floks,&lt;BR /&gt;I very tried of trying to convert this query to DAX.&lt;BR /&gt;Can anybody please help to get out of this.&lt;BR /&gt;&lt;BR /&gt;My Query:&lt;/P&gt;&lt;P&gt;select * from&lt;BR /&gt;(Select B.SiteID, B.PartID, A.Length, A.Width&lt;BR /&gt;from factInventoryTransactions A join dimpart B&lt;BR /&gt;on A.Part_SK = B.Part_SK&lt;/P&gt;&lt;P&gt;where A.TransactionType in(6,4)&amp;nbsp;&lt;BR /&gt;) Z&lt;BR /&gt;&lt;BR /&gt;left join&lt;BR /&gt;(Select B.PartID, A.Length, A.Width&lt;BR /&gt;from factInventoryTransactions A join dimpart B on A.Part_SK = B.Part_SK&lt;BR /&gt;) Y&lt;BR /&gt;on Z.PartID = Y.PartID and Z.Length = Y.Length and Z.Width = Y.Width&lt;/P&gt;&lt;P&gt;where A.TransactionType in(7,5)&lt;BR /&gt;where Y.PartID is null&lt;BR /&gt;&lt;BR /&gt;Thanks in advance ,&lt;BR /&gt;Sivanesan C&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:34:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1486469#M28450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-11T07:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to convert this LEFT JOIN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1486490#M28453</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , what is a formula you want to achieve using these joins, the second join with dim part needs a combined concatenated key . Also, join would be run time. so need to know why we want to join parts in both queries &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:25:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1486490#M28453</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-11T07:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to convert this LEFT JOIN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1486513#M28454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;BR /&gt;First of all the above query have msitake,Below query is I want to convert .&lt;BR /&gt;&lt;BR /&gt;select * from&lt;BR /&gt;(Select B.SiteID, B.PartID, A.Length, A.Width&lt;BR /&gt;from factInventoryTransactions A join dimpart B&lt;BR /&gt;on A.Part_SK = B.Part_SK&lt;BR /&gt;where A.TransactionType in (6,4)&lt;BR /&gt;) Z&lt;BR /&gt;&lt;BR /&gt;left join&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(Select B.PartID, A.Length, A.Width&lt;BR /&gt;from factInventoryTransactions A join dimpart B on A.Part_SK = B.Part_SK&lt;BR /&gt;where A.TransactionType in(7,5)&lt;BR /&gt;) Y&lt;BR /&gt;on Z.PartID = Y.PartID and Z.Length = Y.Length and Z.Width = Y.Width&lt;BR /&gt;where Y.PartID is null&lt;BR /&gt;&lt;BR /&gt;Here i trying to pick the un closed orders, this is the logic in SQL&amp;nbsp;&lt;BR /&gt;But i need to show it in Power BI.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sivanesan C&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:32:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1486513#M28454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-11T07:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to convert this LEFT JOIN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1486707#M28466</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; ,Can you share sample data and&lt;STRONG&gt; sample output&lt;/STRONG&gt; in a table format? Or a sample pbix after removing sensitive data. I can replicate as DAX but measure in power bi need different approch &lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 08:57:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1486707#M28466</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-11T08:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to convert this LEFT JOIN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1488912#M28571</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;assume you already got a dimpart table and factinventor Table in the model, and then try this code&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Table3 =
VAR LeftTbl =
    SUMMARIZE (
        FILTER ( FactTable, FactTable[TransactionType] IN { "4", "6" } ),
        dimTable[SiteID],
        dimTable[PartID],
        FactTable[Length],
        FactTable[Width]
    )
VAR RightTbl =
    SELECTCOLUMNS (
        SUMMARIZE (
            FILTER ( FactTable, FactTable[TransactionType] IN { "5", "7" } ),
            dimTable[PartID],
            FactTable[Length],
            FactTable[Width]
        ),
        "rPartID", dimTable[PartID],
        "rLength", FactTable[Length],
        "rWidth", FactTable[Width]
    )
RETURN
    GENERATE (
        LeftTbl,
        FILTER (
            RightTbl,
            [rPartID] = dimTable[PartID]
                &amp;amp;&amp;amp; [rLength] = FactTable[Length]
                &amp;amp;&amp;amp; [rWidth] = FactTable[Width]
        )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Nov 2020 06:32:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1488912#M28571</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-11-12T06:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to convert this LEFT JOIN</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1499375#M28949</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;It helps me alot but i dont use it as it is.&lt;BR /&gt;Make some changes in Dataware House and used your DAX.&lt;BR /&gt;Thanks alot.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 14:09:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-convert-this-LEFT-JOIN/m-p/1499375#M28949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-17T14:09:11Z</dc:date>
    </item>
  </channel>
</rss>

