<?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 Identifying Results of a Power Query in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Identifying-Results-of-a-Power-Query/m-p/2000618#M30931</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The subject I chose for this is probably bad so I apologize for that.&amp;nbsp; I have a table with part numbers and the locations that those part numbers are stored in the warehouse.&amp;nbsp; I created a power query for the off the location column to tell me if that location is a Bin or a Rack.&amp;nbsp; Now what I want to know is which part numbers are located both in the Bins and the Racks but I'm having a difficult time figuring out just how I should do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately the best result would be another column that was a Yes / No for each part number if it was or wasn't stored in both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help you can give is appreciate.&amp;nbsp; Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 15:27:00 GMT</pubDate>
    <dc:creator>noyesae</dc:creator>
    <dc:date>2021-08-05T15:27:00Z</dc:date>
    <item>
      <title>Identifying Results of a Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Identifying-Results-of-a-Power-Query/m-p/2000618#M30931</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The subject I chose for this is probably bad so I apologize for that.&amp;nbsp; I have a table with part numbers and the locations that those part numbers are stored in the warehouse.&amp;nbsp; I created a power query for the off the location column to tell me if that location is a Bin or a Rack.&amp;nbsp; Now what I want to know is which part numbers are located both in the Bins and the Racks but I'm having a difficult time figuring out just how I should do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately the best result would be another column that was a Yes / No for each part number if it was or wasn't stored in both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help you can give is appreciate.&amp;nbsp; Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 15:27:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Identifying-Results-of-a-Power-Query/m-p/2000618#M30931</guid>
      <dc:creator>noyesae</dc:creator>
      <dc:date>2021-08-05T15:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Results of a Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Identifying-Results-of-a-Power-Query/m-p/2002657#M30954</link>
      <description>&lt;P&gt;Please provide sample data in usable format (not as a picture) and show the expected outcome.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 14:59:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Identifying-Results-of-a-Power-Query/m-p/2002657#M30954</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-06T14:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Results of a Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Identifying-Results-of-a-Power-Query/m-p/2007952#M31029</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="230016" data-lia-user-login="noyesae" class="lia-mention lia-mention-user"&gt;noyesae&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I build a sample to have a test.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Mcode :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUUpUitWBsJLALCMgKxnMMobLGkPEYgE=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Part Number" = _t, Location = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Part Number", Int64.Type}, {"Location", type text}}),
    #"Merged Queries" = Table.NestedJoin(#"Changed Type", {"Location"}, #"Bin or Rack", {"Location"}, "Bin or Rack", JoinKind.LeftOuter),
    #"Expanded Bin or Rack" = Table.ExpandTableColumn(#"Merged Queries", "Bin or Rack", {"Type"}, {"Bin or Rack.Type"}),
    #"Renamed Columns" = Table.RenameColumns(#"Expanded Bin or Rack",{{"Bin or Rack.Type", "Bin or Rack"}}),
    #"Grouped Rows" = Table.Group(#"Renamed Columns", {"Part Number"}, {{"Count", each Table.RowCount(List.Distinct(_[Bin or Rack])), Int64.Type}}),
    #"Added Custom" = Table.AddColumn(#"Grouped Rows", "Custom", each if [Count]=2 then "Yes"else"No"),
    #"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Count"}),
    #"Renamed Columns1" = Table.RenameColumns(#"Removed Columns",{{"Custom", "Result"}})
in
    #"Renamed Columns1"&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 10:16:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Identifying-Results-of-a-Power-Query/m-p/2007952#M31029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-10T10:16:42Z</dc:date>
    </item>
  </channel>
</rss>

