<?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: Union : Based on condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Based-on-condition/m-p/3209360#M117005</link>
    <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;A href="https://1drv.ms/u/s!AsDP3LYI8umspEZck7zSkGe97vaX?e=BhhfcG" target="_blank" rel="noopener"&gt;LeftOuter Join.pbix&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 13:00:03 GMT</pubDate>
    <dc:creator>ThxAlot</dc:creator>
    <dc:date>2023-04-27T13:00:03Z</dc:date>
    <item>
      <title>Union : Based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Based-on-condition/m-p/3208546#M116945</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to Merge two tables based on condition. In attached have attached excel file&lt;/P&gt;&lt;P&gt;1. Sheet1 - Client List(Unique)&lt;/P&gt;&lt;P&gt;2. Sheet2 - Client List with Month and count details.&lt;/P&gt;&lt;P&gt;3. Expected result - Need to Merge Sheet1 with Sheet2 (If company not present in Sheet2 also I can able to get after Merging)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to the folder:&amp;nbsp;&lt;A href="https://drive.google.com/drive/folders/1S7WmOv7XIrN6Yw-Kjqhavt5PFov4Bihr?usp=share_link" target="_self"&gt;Sample files&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 06:17:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Based-on-condition/m-p/3208546#M116945</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2023-04-27T06:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Union : Based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Based-on-condition/m-p/3208993#M116975</link>
      <description>&lt;P&gt;A simple join is enough,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Client = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcszPS1WK1YlWcoIxnGEMFxjDFcZwAzNiAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Client List" = _t]),
    Monthly = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("bc+7CsAgDIXhd8ksaGKjc29PIY5d2/ffWoQaOLoFPsLPKYXW577IEfvAXoLE79ZA1RXaRonaZB9FlibHRKSJdeQXZuiYCHRMFDomGTqx71HomCTodEkZOvhzzjv1BQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Client List" = _t, Month = _t, Count = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Monthly,{{"Month", type date}, {"Count", Int64.Type}}),
    #"LeftOuter Join" = Table.NestedJoin(Client, {"Client List"}, #"Changed Type", {"Client List"}, "joined", JoinKind.LeftOuter),
    #"Expanded joined" = Table.ExpandTableColumn(#"LeftOuter Join", "joined", {"Month", "Count"}),
    #"Changed Month" = let dt=List.Max(#"Changed Type"[Month]) in Table.ReplaceValue(#"Expanded joined", null, dt, Replacer.ReplaceValue, {"Month"}),
    #"Changed Count" = Table.ReplaceValue(#"Changed Month", null, 0, Replacer.ReplaceValue, {"Count"})
in
    #"Changed Count"&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 10:05:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Based-on-condition/m-p/3208993#M116975</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2023-04-27T10:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Union : Based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Based-on-condition/m-p/3209226#M116996</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please explain how code is working. Is it possible to do with DAX?&lt;/P&gt;&lt;P&gt;1. Where ru refering for Table Name.&lt;/P&gt;&lt;P&gt;2. Is there any PDF file to learn M Language&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandrashekar B&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 12:16:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Based-on-condition/m-p/3209226#M116996</guid>
      <dc:creator>Chandrashekar</dc:creator>
      <dc:date>2023-04-27T12:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Union : Based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Based-on-condition/m-p/3209360#M117005</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;A href="https://1drv.ms/u/s!AsDP3LYI8umspEZck7zSkGe97vaX?e=BhhfcG" target="_blank" rel="noopener"&gt;LeftOuter Join.pbix&lt;/A&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 13:00:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Union-Based-on-condition/m-p/3209360#M117005</guid>
      <dc:creator>ThxAlot</dc:creator>
      <dc:date>2023-04-27T13:00:03Z</dc:date>
    </item>
  </channel>
</rss>

